diff --git a/pkgs/development/python-modules/autopxd2/default.nix b/pkgs/development/python-modules/autopxd2/default.nix new file mode 100644 index 000000000000..4b9717679247 --- /dev/null +++ b/pkgs/development/python-modules/autopxd2/default.nix @@ -0,0 +1,48 @@ +{ + buildPythonPackage, + lib, + fetchPypi, + setuptools, + pycparser, + click, + pytestCheckHook, + cython, +}: + +buildPythonPackage rec { + pname = "python-autopxd2"; + version = "2.5.0"; + pyproject = true; + + src = fetchPypi { + pname = "autopxd2"; + inherit version; + hash = "sha256-uxVWz2LSXWpDYvQFrxlrmxA1XQagyHTfFf4hhaHKOqc="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + pycparser + click + cython + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "test/" + ]; + + meta = { + homepage = "https://github.com/elijahr/python-autopxd2"; + mainProgram = "autopxd"; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + license = lib.licenses.mit; + description = "Generates .pxd files automatically from .h files"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5a39088cd82f..74fc0cc05e26 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1066,6 +1066,8 @@ self: super: with self; { autopep8 = callPackage ../development/python-modules/autopep8 { }; + autopxd2 = callPackage ../development/python-modules/autopxd2 { }; + autoslot = callPackage ../development/python-modules/autoslot { }; avahi = toPythonModule (pkgs.avahi.override {