nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "plac";
10 version = "1.3.5";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-OL3YZNBFD7dIGTqoF7nEWKj1MZ+/l7ImEVHPwKWBIJA=";
18 };
19
20 checkPhase = ''
21 cd doc
22 ${python.interpreter} -m unittest discover -p "*test_plac*"
23 '';
24
25 pythonImportsCheck = [
26 "plac"
27 ];
28
29 meta = with lib; {
30 description = "Parsing the Command Line the Easy Way";
31 homepage = "https://github.com/micheles/plac";
32 license = licenses.bsdOriginal;
33 maintainers = with maintainers; [ ];
34 };
35}