pythonPackages.fasteners: refactor move to python-modules
This commit is contained in:
parent
95d05603d3
commit
467455f330
35
pkgs/development/python-modules/fasteners/default.nix
Normal file
35
pkgs/development/python-modules/fasteners/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, six
|
||||||
|
, monotonic
|
||||||
|
, testtools
|
||||||
|
, python
|
||||||
|
, isPy3k
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "fasteners";
|
||||||
|
version = "0.14.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six monotonic testtools ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Tests are written for Python 3.x only (concurrent.futures)
|
||||||
|
doCheck = isPy3k;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Fasteners";
|
||||||
|
homepage = https://github.com/harlowja/fasteners;
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3051,29 +3051,7 @@ in {
|
|||||||
|
|
||||||
retrying = callPackage ../development/python-modules/retrying { };
|
retrying = callPackage ../development/python-modules/retrying { };
|
||||||
|
|
||||||
fasteners = buildPythonPackage rec {
|
fasteners = callPackage ../development/python-modules/fasteners { };
|
||||||
name = "fasteners-${version}";
|
|
||||||
version = "0.14.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/f/fasteners/${name}.tar.gz";
|
|
||||||
sha256 = "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ six monotonic testtools ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} -m unittest discover
|
|
||||||
'';
|
|
||||||
# Tests are written for Python 3.x only (concurrent.futures)
|
|
||||||
doCheck = isPy3k;
|
|
||||||
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Fasteners";
|
|
||||||
homepage = https://github.com/harlowja/fasteners;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
aioeventlet = buildPythonPackage rec {
|
aioeventlet = buildPythonPackage rec {
|
||||||
name = "aioeventlet-${version}";
|
name = "aioeventlet-${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user