depot/third_party/nixpkgs/pkgs/development/python-modules/plac/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

26 lines
578 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "plac";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "ca03587234e5bdd2a3fa96f19a04a01ebb5b0cd66d48ecb5a54d42bc9b287320";
};
checkPhase = ''
cd doc
${python.interpreter} -m unittest discover -p "*test_plac*"
'';
meta = with lib; {
description = "Parsing the Command Line the Easy Way";
homepage = "https://github.com/micheles/plac";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ sdll ];
};
}