ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
25 lines
692 B
Nix
25 lines
692 B
Nix
{ lib, buildPythonPackage, fetchPypi, python }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "unidiff";
|
|
version = "0.7.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2bbcbc986e1fb97f04b1d7b864aa6002ab02f4d8a996bf03aa6e5a81447d1fc5";
|
|
};
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest discover -s tests/
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|