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
497 B
Nix
24 lines
497 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apipkg";
|
|
version = "1.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2e38399dbe842891fe85392601aab8f40a8f4cc5a9053c326de35a1cc0297ac6";
|
|
};
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Namespace control and lazy-import mechanism";
|
|
homepage = https://bitbucket.org/hpk42/apipkg;
|
|
license = licenses.mit;
|
|
};
|
|
}
|