diff --git a/pkgs/development/python-modules/pkginfo2/default.nix b/pkgs/development/python-modules/pkginfo2/default.nix new file mode 100644 index 000000000000..25b9b053748a --- /dev/null +++ b/pkgs/development/python-modules/pkginfo2/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pkginfo2"; + version = "30.0.0"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "nexB"; + repo = "pkginfo2"; + rev = "v${version}"; + hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU="; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pkginfo2" + ]; + + meta = with lib; { + description = "Query metadatdata from sdists, bdists or installed packages"; + homepage = "https://github.com/nexB/pkginfo2"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8ebd87e812a1..a734ab2b3606 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6355,6 +6355,8 @@ in { pkginfo = callPackage ../development/python-modules/pkginfo { }; + pkginfo2 = callPackage ../development/python-modules/pkginfo2 { }; + pkuseg = callPackage ../development/python-modules/pkuseg { }; pmsensor = callPackage ../development/python-modules/pmsensor { };