nixpkgs/pkgs/development/python-modules/fasteners/default.nix
2021-04-03 17:48:31 +02:00

36 lines
643 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, monotonic
, testtools
, isPy3k
, nose
, futures
}:
buildPythonPackage rec {
pname = "fasteners";
version = "0.16";
src = fetchPypi {
inherit pname version;
sha256 = "c995d8c26b017c5d6a6de9ad29a0f9cdd57de61ae1113d28fac26622b06a0933";
};
propagatedBuildInputs = [ six monotonic ];
checkInputs = [ 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;
};
}