depot/third_party/nixpkgs/pkgs/development/python-modules/incremental/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

44 lines
889 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, click
, twisted
}:
let incremental = buildPythonPackage rec {
pname = "incremental";
version = "21.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "02f5de5aff48f6b9f665d99d48bfc7ec03b6e3943210de7cfc88856d755d6f57";
};
propagatedBuildInputs = [
click
];
# escape infinite recursion with twisted
doCheck = false;
checkInputs = [
twisted
];
checkPhase = ''
trial incremental
'';
passthru.tests = {
check = incremental.overridePythonAttrs (_: { doCheck = true; });
};
pythonImportsCheck = [ "incremental" ];
meta = with lib; {
homepage = "https://github.com/twisted/incremental";
description = "Incremental is a small library that versions your Python projects";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}; in incremental