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