nixpkgs/pkgs/development/python-modules/pluginbase/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

26 lines
575 B
Nix

{ lib, fetchPypi, buildPythonPackage, pytest }:
buildPythonPackage rec {
version = "1.0.1";
pname = "pluginbase";
src = fetchPypi {
inherit pname version;
sha256 = "ff6c33a98fce232e9c73841d787a643de574937069f0d18147028d70d7dee287";
};
nativeCheckInputs = [ pytest ];
checkPhase = ''
cd tests
PYTHONPATH=.. pytest
'';
meta = with lib; {
homepage = "https://github.com/mitsuhiko/pluginbase";
description = "A support library for building plugins sytems in Python";
license = licenses.bsd3;
platforms = platforms.all;
};
}