1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, six
5, monotonic
6, testtools
7, python
8, isPy3k
9}:
10
11buildPythonPackage rec {
12 pname = "fasteners";
13 version = "0.14.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22";
18 };
19
20 propagatedBuildInputs = [ six monotonic testtools ];
21
22 checkPhase = ''
23 ${python.interpreter} -m unittest discover
24 '';
25
26 # Tests are written for Python 3.x only (concurrent.futures)
27 doCheck = isPy3k;
28
29 meta = with stdenv.lib; {
30 description = "Fasteners";
31 homepage = https://github.com/harlowja/fasteners;
32 license = licenses.asl20;
33 };
34
35}