mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +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`.
33 lines
685 B
Nix
33 lines
685 B
Nix
{ stdenv
|
||
, buildPythonPackage
|
||
, fetchPypi
|
||
, setuptools_scm
|
||
# , backports
|
||
, python
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "backports.weakref";
|
||
version = "1.0.post1";
|
||
src = fetchPypi {
|
||
inherit pname version;
|
||
sha256 = "bc4170a29915f8b22c9e7c4939701859650f2eb84184aee80da329ac0b9825c2";
|
||
};
|
||
|
||
buildInputs = [ setuptools_scm ];
|
||
# checkInputs = [ backports ];
|
||
|
||
# Requires backports package
|
||
doCheck = false;
|
||
|
||
checkPhase = ''
|
||
${python.interpreter} -m unittest discover tests
|
||
'';
|
||
|
||
meta = with stdenv.lib; {
|
||
description = "Backports of new features in Python’s weakref module";
|
||
license = licenses.psfl;
|
||
maintainers = with maintainers; [ jyp ];
|
||
};
|
||
}
|