2018-10-26 01:33:06 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, monotonic
|
|
|
|
, testtools
|
|
|
|
, isPy3k
|
2019-06-02 18:17:18 +01:00
|
|
|
, nose
|
|
|
|
, futures
|
2018-10-26 01:33:06 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fasteners";
|
2019-06-02 18:17:18 +01:00
|
|
|
version = "0.15";
|
2018-10-26 01:33:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-02 18:17:18 +01:00
|
|
|
sha256 = "3a176da6b70df9bb88498e1a18a9e4a8579ed5b9141207762368a1017bf8f5ef";
|
2018-10-26 01:33:06 +01:00
|
|
|
};
|
|
|
|
|
2019-06-02 18:17:18 +01:00
|
|
|
propagatedBuildInputs = [ six monotonic ];
|
|
|
|
|
|
|
|
checkInputs = [ testtools nose ] ++ stdenv.lib.optionals (!isPy3k) [ futures ];
|
2018-10-26 01:33:06 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-06-02 18:17:18 +01:00
|
|
|
nosetests
|
2018-10-26 01:33:06 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-06-02 18:17:18 +01:00
|
|
|
description = "A python package that provides useful locks";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/harlowja/fasteners";
|
2018-10-26 01:33:06 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|