Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / plac / default.nix
bloba1822fe5157dc4a2f9541f6f35dc67763407ff47
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , python
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "plac";
10   version = "1.4.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "ialbert";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-BH6NKbDMhlNuo+orIEweABNSVZv1K9VrZBrCIs6H6BU=";
20   };
22   # tests are broken, see https://github.com/ialbert/plac/issues/74
23   doCheck = false;
25   checkPhase = ''
26     runHook preCheck
28     ${python.interpreter} doc/test_plac.py
30     runHook postCheck
31   '';
33   pythonImportsCheck = [
34     "plac"
35   ];
37   meta = with lib; {
38     description = "Parsing the Command Line the Easy Way";
39     homepage = "https://github.com/micheles/plac";
40     license = licenses.bsdOriginal;
41     maintainers = with maintainers; [ ];
42   };