nixpkgs/pkgs/development/python-modules/aniso8601/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

21 lines
476 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, dateutil }:
buildPythonPackage rec {
pname = "aniso8601";
version = "3.0.2";
meta = with stdenv.lib; {
description = "Parses ISO 8601 strings.";
homepage = "https://bitbucket.org/nielsenb/aniso8601";
license = licenses.bsd3;
};
propagatedBuildInputs = [ dateutil ];
src = fetchPypi {
inherit pname version;
sha256 = "7849749cf00ae0680ad2bdfe4419c7a662bef19c03691a19e008c8b9a5267802";
};
}