mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
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
435 B
Nix
19 lines
435 B
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysha3";
|
|
version = "1.0.2";
|
|
disabled = pythonOlder "2.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "17kkjapv6sr906ib0r5wpldmzw7scza08kv241r98vffy9rqx67y";
|
|
};
|
|
|
|
meta = {
|
|
description = "Backport of hashlib.sha3 for 2.7 to 3.5";
|
|
homepage = https://github.com/tiran/pysha3;
|
|
license = lib.licenses.psfl;
|
|
};
|
|
}
|