2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 01:33:06 +01:00
|
|
|
, 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 ];
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
checkInputs = [ testtools nose ] ++ 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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|