nixpkgs/pkgs/development/python-modules/dateutil/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

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";
};
}