depot/third_party/nixpkgs/pkgs/development/python-modules/whatthepatch/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

30 lines
628 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "whatthepatch";
version = "1.0.2";
src = fetchFromGitHub {
owner = "cscorley";
repo = pname;
rev = version;
hash = "sha256-0l/Ebq7Js9sKFJ/RzkQ1aWEDCxt+COVd2qVnLSWwFx0=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "whatthepatch" ];
meta = with lib; {
description = "Python library for both parsing and applying patch files";
homepage = "https://github.com/cscorley/whatthepatch";
license = licenses.mit;
maintainers = with maintainers; [ jyooru ];
};
}