feat(init): init

This commit is contained in:
catvayor 2024-10-25 15:10:54 +02:00
commit c393361e83
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
2 changed files with 40 additions and 0 deletions

5
default.nix Normal file
View 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)

View 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 = [ "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; [ ];
};
}