mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
pytimeparse: refactor
This commit is contained in:
parent
2b56afea4d
commit
0ef0a4ab5e
21
pkgs/development/python-modules/pytimeparse/default.nix
Normal file
21
pkgs/development/python-modules/pytimeparse/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user