nixpkgs/pkgs/development/python-modules/pyramid_beaker/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

29 lines
825 B
Nix

{ lib, 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
'';
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [ beaker pyramid ];
meta = with lib; {
description = "Beaker session factory backend for Pyramid";
homepage = "https://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/";
# idk, see https://github.com/Pylons/pyramid_beaker/blob/master/LICENSE.txt
# license = licenses.mpl20;
maintainers = with maintainers; [ domenkozar ];
};
}