diff --git a/pkgs/development/python-modules/unidiff/default.nix b/pkgs/development/python-modules/unidiff/default.nix new file mode 100644 index 000000000000..81e9019f489c --- /dev/null +++ b/pkgs/development/python-modules/unidiff/default.nix @@ -0,0 +1,21 @@ +{ lib, buildPythonPackage, fetchFromGitHub }: + +buildPythonPackage rec { + pname = "unidiff"; + version = "0.5.5"; + + # PyPI tarball doesn't ship tests + src = fetchFromGitHub { + owner = "matiasb"; + repo = "python-unidiff"; + rev = "v${version}"; + sha256 = "1nvi7s1nn5p7j6aql1nkn2kiadnfby98yla5m3jq8xwsx0aplwdm"; + }; + + meta = with lib; { + description = "Unified diff python parsing/metadata extraction library"; + homepage = https://github.com/matiasb/python-unidiff; + license = licenses.mit; + maintainers = [ maintainers.marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d7a22f94b53a..0fa51214e439 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4382,6 +4382,8 @@ in { unicodecsv = callPackage ../development/python-modules/unicodecsv { }; + unidiff = callPackage ../development/python-modules/unidiff { }; + unittest2 = callPackage ../development/python-modules/unittest2 { }; unittest-xml-reporting = callPackage ../development/python-modules/unittest-xml-reporting { };