commit 1843e746bd2efbe7fe643309250bb416f4929ea1 Author: catvayor Date: Fri Oct 25 15:10:54 2024 +0200 feat(init): init diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..12bc932 --- /dev/null +++ b/default.nix @@ -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) diff --git a/python-pkgs/django-impersonate.nix b/python-pkgs/django-impersonate.nix new file mode 100644 index 0000000..d3dfb3d --- /dev/null +++ b/python-pkgs/django-impersonate.nix @@ -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; [ ]; + }; +}