depot/third_party/nixpkgs/pkgs/development/python-modules/plac/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

43 lines
827 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "plac";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ialbert";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-BH6NKbDMhlNuo+orIEweABNSVZv1K9VrZBrCIs6H6BU=";
};
# tests are broken, see https://github.com/ialbert/plac/issues/74
doCheck = false;
checkPhase = ''
runHook preCheck
${python.interpreter} doc/test_plac.py
runHook postCheck
'';
pythonImportsCheck = [
"plac"
];
meta = with lib; {
description = "Parsing the Command Line the Easy Way";
homepage = "https://github.com/micheles/plac";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ ];
};
}