@@ -1,16 +1,21 @@
1−{ stdenv, fetchPypi, buildPythonPackage, pytest, tox }:
1+{ stdenv, fetchPypi, buildPythonPackage, pytest }:
22
33buildPythonPackage rec {
44 version = "1.0.0";
55 pname = "pluginbase";
66
7− buildInputs = [ pytest tox ];
8−
97 src = fetchPypi {
108 inherit pname version;
119 sha256 = "497894df38d0db71e1a4fbbfaceb10c3ef49a3f95a0582e11b75f8adaa030005";
1210 };
1311
12+ checkInputs = [ pytest ];
13+
14+ checkPhase = ''
15+ cd tests
16+ PYTHONPATH=.. pytest
17+ '';
18+
1419 meta = with stdenv.lib; {
1520 homepage = https://github.com/mitsuhiko/pluginbase;
1621 description = "A support library for building plugins sytems in Python";