depot/third_party/nixpkgs/pkgs/development/python-modules/unidiff/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

25 lines
709 B
Nix

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