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`.
24 lines
527 B
Nix
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;
|
|
};
|
|
}
|