initial commit

This commit is contained in:
Jonas Rabenstein 2025-09-30 12:07:41 +02:00
commit e3b0136650
9 changed files with 245 additions and 0 deletions

36
package/python.nix Normal file
View file

@ -0,0 +1,36 @@
{
callPackage,
python3Packages,
name,
repo ? name,
version,
hash,
pydeps ? (_: []),
...
}: let
source = callPackage ./source.nix {
inherit repo;
inherit version;
inherit hash;
};
in python3Packages.buildPythonPackage {
pname = name;
inherit version;
src = callPackage ./source.nix {
inherit repo;
inherit version;
inherit hash;
};
build-system = [ python3Packages.setuptools ];
pyproject = true;
dependencies = let
common = with python3Packages; [
cython
];
in common ++ pydeps python3Packages;
}