pytimeparse: refactor

This commit is contained in:
Rahul Gopinath 2017-05-02 21:16:23 -07:00
parent 2b56afea4d
commit 0ef0a4ab5e
2 changed files with 22 additions and 19 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, fetchPypi, buildPythonPackage, nose }:
buildPythonPackage rec {
pname = "pytimeparse";
version = "1.1.6";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0imbb68i5n5fm704gv47if1blpxd4f8g16qmp5ar07cavgh2mibl";
};
propagatedBuildInputs = [ nose ];
meta = with stdenv.lib; {
description = "A small Python library to parse various kinds of time expressions";
homepage = "https://github.com/wroberts/pytimeparse";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}

View File

@ -318,25 +318,7 @@ in {
python-stdnum = callPackage ../development/python-modules/python-stdnum { };
pytimeparse = buildPythonPackage rec {
pname = "pytimeparse";
version = "1.1.6";
name = "${pname}-${version}";
meta = {
description = "A small Python library to parse various kinds of time expressions";
homepage = "https://github.com/wroberts/pytimeparse";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
propagatedBuildInputs = with self; [ nose ];
src = fetchPypi {
inherit pname version;
sha256 = "0imbb68i5n5fm704gv47if1blpxd4f8g16qmp5ar07cavgh2mibl";
};
};
pytimeparse = callPackage ../development/python-modules/pytimeparse { };
PyWebDAV = callPackage ../development/python-modules/pywebdav { };