pythonPackages.pid: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 09:19:31 -04:00
parent 50ec0b1724
commit 8a27bc48b2
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 28 additions and 20 deletions

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
}:
buildPythonPackage rec {
pname = "pid";
version = "2.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0cylj8p25nwkdfgy4pzai21wyzmrxdqlwwbzqag9gb5qcjfdwk05";
};
buildInputs = [ nose ];
# No tests included
doCheck = false;
meta = with stdenv.lib; {
description = "Pidfile featuring stale detection and file-locking";
homepage = https://github.com/trbs/pid/;
license = licenses.asl20;
};
}

View File

@ -3790,26 +3790,7 @@ in {
timeout-decorator = callPackage ../development/python-modules/timeout-decorator { };
pid = buildPythonPackage rec {
name = "pid-${version}";
version = "2.0.1";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pid/${name}.tar.gz";
sha256 = "0cylj8p25nwkdfgy4pzai21wyzmrxdqlwwbzqag9gb5qcjfdwk05";
};
buildInputs = with self; [ nose ];
# No tests included
doCheck = false;
meta = {
description = "Pidfile featuring stale detection and file-locking";
homepage = https://github.com/trbs/pid/;
license = licenses.asl20;
};
};
pid = callPackage ../development/python-modules/pid { };
pip2nix = buildPythonPackage rec {
name = "pip2nix-${version}";