summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pluginbase/default.nix
blob: cc330ac93f9b6af8d18c645e164414a6661f5df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  lib,
  fetchPypi,
  buildPythonPackage,
  pytest,
}:

buildPythonPackage rec {
  version = "1.0.1";
  format = "setuptools";
  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 = "Support library for building plugins sytems in Python";
    license = licenses.bsd3;
    platforms = platforms.all;
  };
}