writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / plac / default.nix
blobd234636bb2ce270acd2db7bcb038585e6a0651e9
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   python,
6   pythonOlder,
7 }:
9 buildPythonPackage rec {
10   pname = "plac";
11   version = "1.4.3";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "ialbert";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-EWwDtS2cRLBe4aZuH72hgg2BQnVJQ39GmPx05NxTNjE=";
21   };
23   # tests are broken, see https://github.com/ialbert/plac/issues/74
24   doCheck = false;
26   checkPhase = ''
27     runHook preCheck
29     ${python.interpreter} doc/test_plac.py
31     runHook postCheck
32   '';
34   pythonImportsCheck = [ "plac" ];
36   meta = with lib; {
37     description = "Parsing the Command Line the Easy Way";
38     mainProgram = "plac_runner.py";
39     homepage = "https://github.com/micheles/plac";
40     license = licenses.bsdOriginal;
41     maintainers = [ ];
42   };