diff options
-rw-r--r-- | pkgs/development/python-modules/unidiff/default.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/unidiff/default.nix b/pkgs/development/python-modules/unidiff/default.nix index bfe5a4c5eaf4..7dfd5c9d276a 100644 --- a/pkgs/development/python-modules/unidiff/default.nix +++ b/pkgs/development/python-modules/unidiff/default.nix @@ -1,20 +1,20 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ lib, buildPythonPackage, fetchPypi }: buildPythonPackage rec { pname = "unidiff"; version = "0.7.0"; - # PyPI tarball doesn't ship tests - src = fetchFromGitHub { - owner = "matiasb"; - repo = "python-unidiff"; - rev = "v${version}"; - sha256 = "1s1l327jqm0r35pn9c83pbw15k66x8klw1lf45xqp8lrdc15cqv5"; + src = fetchPypi { + inherit pname version; + sha256 = "91bb13b4969514a400679d9ae5e29a6ffad85346087677f8b5e2e036af817447"; }; + pythonImportsCheck = [ "unidiff" ]; + meta = with lib; { description = "Unified diff python parsing/metadata extraction library"; homepage = "https://github.com/matiasb/python-unidiff"; + changelog = "https://github.com/matiasb/python-unidiff/raw/v${version}/HISTORY"; license = licenses.mit; maintainers = [ maintainers.marsam ]; }; |