feat(init): init
This commit is contained in:
commit
1843e746bd
2 changed files with 40 additions and 0 deletions
5
default.nix
Normal file
5
default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ pkgs, lib ? pkgs.lib }: with lib;
|
||||
mapAttrs' (name: _: {
|
||||
value = pkgs.python3.pkgs.callPackage (./python-pkgs/${name}) { };
|
||||
name = removeSuffix ".nix" name;
|
||||
}) (builtins.readDir ./python-pkgs)
|
35
python-pkgs/django-impersonate.nix
Normal file
35
python-pkgs/django-impersonate.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
wheel,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-impersonate";
|
||||
version = "0.9.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "BetterWorks";
|
||||
repo = "django-impersonate";
|
||||
rev = version;
|
||||
hash = "sha256-IELpNA5G67FepRKxNEOGRqzb1QwfrzAJzTCrYtQsM34=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
# pythonImportsCheck = [ "django_impersonate" ];
|
||||
|
||||
meta = {
|
||||
description = "Fork of https://bitbucket.org/petersanchez/django-impersonate";
|
||||
homepage = "https://github.com/BetterWorks/django-impersonate.git";
|
||||
changelog = "https://github.com/BetterWorks/django-impersonate/blob/${src.rev}/CHANGELOG";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue