mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-16 00:53:01 +00:00
pythonPackages.pyRFC3339: refactor move to python-modules
This commit is contained in:
parent
ef769d741c
commit
d9d19b2de9
26
pkgs/development/python-modules/pyrfc3339/default.nix
Normal file
26
pkgs/development/python-modules/pyrfc3339/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytz
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyRFC3339";
|
||||
version = "0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1pp648xsjaw9h1xq2mgwzda5wis2ypjmzxlksc1a8grnrdmzy155";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pytz ];
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generate and parse RFC 3339 timestamps";
|
||||
homepage = https://github.com/kurtraschke/pyRFC3339;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
|
@ -2276,18 +2276,7 @@ in {
|
|||
|
||||
python2-pythondialog = callPackage ../development/python-modules/python2-pythondialog { };
|
||||
|
||||
pyRFC3339 = buildPythonPackage rec {
|
||||
name = "pyRFC3339-${version}";
|
||||
version = "0.2";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pyRFC3339/pyRFC3339-${version}.tar.gz";
|
||||
sha256 = "1pp648xsjaw9h1xq2mgwzda5wis2ypjmzxlksc1a8grnrdmzy155";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ pytz ];
|
||||
buildInputs = with self; [ nose ];
|
||||
};
|
||||
pyRFC3339 = callPackage ../development/python-modules/pyrfc3339 { };
|
||||
|
||||
ConfigArgParse = callPackage ../development/python-modules/configargparse { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue