about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/fasteners/default.nix
blob: 77a6f9b04088407516bad2ce8fc543a804d5c57a (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
{ stdenv
, buildPythonPackage
, fetchPypi
, six
, monotonic
, testtools
, python
, isPy3k
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22";
  };

  propagatedBuildInputs = [ six monotonic testtools ];

  checkPhase = ''
    ${python.interpreter} -m unittest discover
  '';

  # Tests are written for Python 3.x only (concurrent.futures)
  doCheck = isPy3k;

  meta = with stdenv.lib; {
    description = "Fasteners";
    homepage = https://github.com/harlowja/fasteners;
    license = licenses.asl20;
  };

}