mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:59:25 +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`.
22 lines
552 B
Nix
22 lines
552 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "backports.unittest_mock";
|
|
version = "1.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0xdkx5wf5a2w2zd2pshk7z2cvbv6db64c1x6v9v1a18ja7bn9nf6";
|
|
};
|
|
|
|
propagatedBuildInputs = [ mock ];
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Provides a function install() which makes the mock module";
|
|
homepage = https://github.com/jaraco/backports.unittest_mock;
|
|
license = licenses.mit;
|
|
};
|
|
}
|