1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, decorator
6, appdirs
7, six
8, numpy
9, pytest
10}:
11
12buildPythonPackage rec {
13 pname = "pytools";
14 version = "2021.2.9";
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "db6cf83c9ba0a165d545029e2301621486d1e9ef295684072e5cd75316a13755";
20 };
21
22 checkInputs = [ pytest ];
23
24 propagatedBuildInputs = [
25 decorator
26 appdirs
27 six
28 numpy
29 ];
30
31 checkPhase = ''
32 py.test -k 'not test_persistent_dict'
33 '';
34
35 meta = {
36 homepage = "https://github.com/inducer/pytools/";
37 description = "Miscellaneous Python lifesavers.";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ artuuge ];
40 };
41}