forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
19 lines
521 B
Nix
19 lines
521 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, six, setuptools_scm }:
|
|
buildPythonPackage rec {
|
|
pname = "python-dateutil";
|
|
version = "2.7.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e27001de32f627c22380a688bcc43ce83504a7bc5da472209b4c70f02829f0b8";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six setuptools_scm ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Powerful extensions to the standard datetime module";
|
|
homepage = https://pypi.python.org/pypi/python-dateutil;
|
|
license = "BSD-style";
|
|
};
|
|
}
|