python.pkgs.pluginbase: run tests
This commit is contained in:
parent
244fcfc85c
commit
01bca861c2
@ -1,16 +1,21 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage, pytest, tox }:
|
{ stdenv, fetchPypi, buildPythonPackage, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
pname = "pluginbase";
|
pname = "pluginbase";
|
||||||
|
|
||||||
buildInputs = [ pytest tox ];
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "497894df38d0db71e1a4fbbfaceb10c3ef49a3f95a0582e11b75f8adaa030005";
|
sha256 = "497894df38d0db71e1a4fbbfaceb10c3ef49a3f95a0582e11b75f8adaa030005";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
cd tests
|
||||||
|
PYTHONPATH=.. pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/mitsuhiko/pluginbase;
|
homepage = https://github.com/mitsuhiko/pluginbase;
|
||||||
description = "A support library for building plugins sytems in Python";
|
description = "A support library for building plugins sytems in Python";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user