diff --git a/pkgs/development/python-modules/python-registry/default.nix b/pkgs/development/python-modules/python-registry/default.nix index 44795da8ddf..fbf8df7f322 100644 --- a/pkgs/development/python-modules/python-registry/default.nix +++ b/pkgs/development/python-modules/python-registry/default.nix @@ -1,16 +1,20 @@ { lib , buildPythonPackage -, fetchPypi , enum-compat +, fetchFromGitHub +, pytestCheckHook , unicodecsv }: + buildPythonPackage rec { pname = "python-registry"; - version = "1.3.1"; + version = "1.4"; - src = fetchPypi { - inherit pname version; - sha256 = "99185f67d5601be3e7843e55902d5769aea1740869b0882f34ff1bd4b43b1eb2"; + src = fetchFromGitHub { + owner = "williballenthin"; + repo = pname; + rev = version; + sha256 = "0gwx5jcribgmmbz0ikhz8iphz7yj2d2nmk24nkdrjd3y5irly11s"; }; propagatedBuildInputs = [ @@ -18,8 +22,13 @@ buildPythonPackage rec { unicodecsv ]; - # no tests - doCheck = false; + checkInputs = [ + pytestCheckHook + ]; + + disabledTestPaths = [ + "samples" + ]; pythonImportsCheck = [ "Registry"