diff --git a/pkgs/development/python-modules/pynauty/default.nix b/pkgs/development/python-modules/pynauty/default.nix new file mode 100644 index 000000000000..f223889fb1ae --- /dev/null +++ b/pkgs/development/python-modules/pynauty/default.nix @@ -0,0 +1,62 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gnumake, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, +}: + +buildPythonPackage (finalAttrs: { + pname = "pynauty"; + version = "2.8.8.1"; + + __structuredAttrs = true; + + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "pdobsan"; + repo = "pynauty"; + tag = finalAttrs.version; + hash = "sha256-VdAXNRRMNEos0t04ixQywUncj7ohSCqRDitT+kWywZo="; + }; + + build-system = [ + setuptools + wheel + ]; + + nativeBuildInputs = [ + gnumake + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pytestFlags = [ + "--pyargs" + "pynauty" + ]; + + pythonImportsCheck = [ + "pynauty" + "pynauty.nautywrap" + ]; + + meta = { + description = "Isomorphism testing and automorphisms of graphs"; + homepage = "https://github.com/pdobsan/pynauty"; + changelog = "https://github.com/pdobsan/pynauty/releases/tag/${finalAttrs.version}"; + license = with lib.licenses; [ + gpl3Plus + asl20 + ]; + maintainers = with lib.maintainers; [ kilianar ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e825bfc337a1..44a88d177960 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15253,6 +15253,8 @@ self: super: with self; { pynanoleaf = callPackage ../development/python-modules/pynanoleaf { }; + pynauty = callPackage ../development/python-modules/pynauty { }; + pync = callPackage ../development/python-modules/pync { inherit (pkgs) which; }; pynecil = callPackage ../development/python-modules/pynecil { };