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

24 lines
527 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, tzlocal, pytz }:
buildPythonPackage rec {
pname = "tzlocal";
version = "1.5.1";
propagatedBuildInputs = [ pytz ];
src = fetchPypi {
inherit pname version;
sha256 = "4ebeb848845ac898da6519b9b31879cf13b6626f7184c496037b818e238f2c4e";
};
# test fail (timezone test fail)
doCheck = false;
meta = with stdenv.lib; {
description = "Tzinfo object for the local timezone";
homepage = https://github.com/regebro/tzlocal;
license = licenses.cddl;
};
}