diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2021-08-22 01:04:02 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2021-08-22 01:04:02 -0500 |
commit | d74f249f7677d43756cd34ccb960205856cd4e17 (patch) | |
tree | 30bd7cc728fc79d14fe9a7e69b852e7297541981 | |
parent | 52c6fc70cbc2d22ae585584e60386da443ece036 (diff) |
python39Packages.unidiff: fetch from PyPI
-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 bfe5a4c5eaf4f..7dfd5c9d276aa 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 ]; }; |