depot/third_party/nixpkgs/pkgs/development/python-modules/unidiff/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

25 lines
703 B
Nix

{ lib, buildPythonPackage, fetchPypi, unittestCheckHook }:
buildPythonPackage rec {
pname = "unidiff";
version = "0.7.4";
src = fetchPypi {
inherit pname version;
sha256 = "2bbcbc986e1fb97f04b1d7b864aa6002ab02f4d8a996bf03aa6e5a81447d1fc5";
};
checkInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "-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 ];
};
}