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`.
34 lines
737 B
Nix
34 lines
737 B
Nix
{ lib
|
|
, python
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools_scm
|
|
, backports_weakref
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "backports.tempfile";
|
|
version = "1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1c648c452e8770d759bdc5a5e2431209be70d25484e1be24876cf2168722c762";
|
|
};
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
propagatedBuildInputs = [ backports_weakref ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest discover -s tests
|
|
'';
|
|
|
|
# requires https://pypi.org/project/backports.test.support
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Backport of new features in Python's tempfile module";
|
|
license = lib.licenses.psfl;
|
|
homepage = https://github.com/pjdelport/backports.tempfile;
|
|
};
|
|
} |