pythonPackages.schedule: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 12:56:16 -04:00 committed by Frederik Rietdijk
parent c38f4d6407
commit e49ffc0434
2 changed files with 25 additions and 16 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, mock
}:
buildPythonPackage rec {
pname = "schedule";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "1h0waw4jd5ql68y5kxb9irwapkbkwfs1w0asvbl24fq5f8czdijm";
};
buildInputs = [ mock ];
meta = with stdenv.lib; {
description = "Python job scheduling for humans";
homepage = https://github.com/dbader/schedule;
license = licenses.mit;
};
}

View File

@ -2173,22 +2173,7 @@ in {
scandir = callPackage ../development/python-modules/scandir { };
schedule = buildPythonPackage rec {
name = "schedule-0.3.2";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/10/96/d101fab391753ebc81fa3bb0e744df1ddcfb032c31b036d38083f8994db1/schedule-0.3.2.tar.gz";
sha256 = "1h0waw4jd5ql68y5kxb9irwapkbkwfs1w0asvbl24fq5f8czdijm";
};
buildInputs = with self; [ mock ];
meta = with stdenv.lib; {
description = "Python job scheduling for humans";
homepage = https://github.com/dbader/schedule;
license = licenses.mit;
};
};
schedule = callPackage ../development/python-modules/schedule { };
schema = callPackage ../development/python-modules/schema {};