mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 02:46:28 +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`.
25 lines
569 B
Nix
25 lines
569 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytest, beaker, pyramid }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyramid_beaker";
|
|
version = "0.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0hflx3qkcdml1mwpq53sz46s7jickpfn0zy0ns2c7j445j66bp3p";
|
|
};
|
|
|
|
checkPhase = ''
|
|
# https://github.com/Pylons/pyramid_beaker/issues/29
|
|
py.test -k 'not test_includeme' pyramid_beaker/tests.py
|
|
'';
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ beaker pyramid ];
|
|
|
|
meta = with stdenv.lib; {
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
}
|