2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2018-10-25 17:33:06 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, monotonic
|
2021-03-24 06:04:05 -07:00
|
|
|
, diskcache
|
|
|
|
, more-itertools
|
2018-10-25 17:33:06 -07:00
|
|
|
, testtools
|
|
|
|
, isPy3k
|
2019-06-02 10:17:18 -07:00
|
|
|
, nose
|
2021-03-24 09:45:56 -07:00
|
|
|
, futures ? null
|
2018-10-25 17:33:06 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fasteners";
|
2021-03-24 02:28:12 -07:00
|
|
|
version = "0.16";
|
2018-10-25 17:33:06 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 02:28:12 -07:00
|
|
|
sha256 = "c995d8c26b017c5d6a6de9ad29a0f9cdd57de61ae1113d28fac26622b06a0933";
|
2018-10-25 17:33:06 -07:00
|
|
|
};
|
|
|
|
|
2021-03-24 06:04:05 -07:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
monotonic
|
|
|
|
];
|
2019-06-02 10:17:18 -07:00
|
|
|
|
2021-03-24 06:04:05 -07:00
|
|
|
checkInputs = [
|
|
|
|
diskcache
|
|
|
|
more-itertools
|
|
|
|
testtools
|
|
|
|
nose
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
futures
|
|
|
|
];
|
2018-10-25 17:33:06 -07:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-06-02 10:17:18 -07:00
|
|
|
nosetests
|
2018-10-25 17:33:06 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2019-06-02 10:17:18 -07:00
|
|
|
description = "A python package that provides useful locks";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/harlowja/fasteners";
|
2018-10-25 17:33:06 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|