about summary refs log tree commit diff
path: root/pkgs/development/python-modules/fasteners/default.nix
blob: 0364022fa2864f955dba96b705a9e9ee7eecebc6 (plain) (blame)
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
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchPypi
, six
, monotonic
, diskcache
, more-itertools
, testtools
, isPy3k
, nose
, futures ? null
}:

buildPythonPackage rec {
  pname = "fasteners";
  version = "0.16.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "b1ab4e5adfbc28681ce44b3024421c4f567e705cc3963c732bf1cba3348307de";
  };

  propagatedBuildInputs = [
    six
    monotonic
  ];

  checkInputs = [
    diskcache
    more-itertools
    testtools
    nose
  ] ++ lib.optionals (!isPy3k) [
    futures
  ];

  checkPhase = ''
    nosetests
  '';

  meta = with lib; {
    description = "A python package that provides useful locks";
    homepage = "https://github.com/harlowja/fasteners";
    license = licenses.asl20;
  };

}