blob: 3416748a9582d051470a2bb54539dfcfc28c706f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
}:
buildPythonPackage rec {
pname = "plac";
version = "1.4.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "ialbert";
repo = "plac";
tag = "v${version}";
hash = "sha256-GcPZ9Ufr2NU+95XZRVgB0+cKGAc17kIYxuxYvWiq//4=";
};
# 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 = {
description = "Parsing the Command Line the Easy Way";
mainProgram = "plac_runner.py";
homepage = "https://github.com/micheles/plac";
license = lib.licenses.bsdOriginal;
maintainers = [ ];
};
}
|