pythonPackages.parsedatetime: refactor move to python-modules
This commit is contained in:
parent
f542b49600
commit
4806ee108a
27
pkgs/development/python-modules/parsedatetime/default.nix
Normal file
27
pkgs/development/python-modules/parsedatetime/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
, pytestrunner
|
||||||
|
, future
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "parsedatetime";
|
||||||
|
version = "2.3";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1vkrmd398s11h1zn3zaqqsiqhj9lwy1ikcg6irx2lrgjzjg3rjll";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest pytestrunner ];
|
||||||
|
propagatedBuildInputs = [ future ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Parse human-readable date/time text";
|
||||||
|
homepage = "https://github.com/bear/parsedatetime";
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3081,24 +3081,7 @@ in {
|
|||||||
|
|
||||||
pamqp = callPackage ../development/python-modules/pamqp { };
|
pamqp = callPackage ../development/python-modules/pamqp { };
|
||||||
|
|
||||||
parsedatetime = buildPythonPackage rec {
|
parsedatetime = callPackage ../development/python-modules/parsedatetime { };
|
||||||
name = "parsedatetime-${version}";
|
|
||||||
version = "2.3";
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Parse human-readable date/time text";
|
|
||||||
homepage = "https://github.com/bear/parsedatetime";
|
|
||||||
license = licenses.asl20;
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytest pytestrunner ];
|
|
||||||
propagatedBuildInputs = with self; [ future ];
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/parsedatetime/${name}.tar.gz";
|
|
||||||
sha256 = "1vkrmd398s11h1zn3zaqqsiqhj9lwy1ikcg6irx2lrgjzjg3rjll";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
paramiko = callPackage ../development/python-modules/paramiko { };
|
paramiko = callPackage ../development/python-modules/paramiko { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user