1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, monotonic
6, diskcache
7, more-itertools
8, testtools
9, isPy3k
10, nose
11, futures ? null
12}:
13
14buildPythonPackage rec {
15 pname = "fasteners";
16 version = "0.16.3";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "b1ab4e5adfbc28681ce44b3024421c4f567e705cc3963c732bf1cba3348307de";
21 };
22
23 propagatedBuildInputs = [
24 six
25 monotonic
26 ];
27
28 checkInputs = [
29 diskcache
30 more-itertools
31 testtools
32 nose
33 ] ++ lib.optionals (!isPy3k) [
34 futures
35 ];
36
37 checkPhase = ''
38 nosetests
39 '';
40
41 meta = with lib; {
42 description = "A python package that provides useful locks";
43 homepage = "https://github.com/harlowja/fasteners";
44 license = licenses.asl20;
45 };
46
47}