summary refs log tree commit diff
path: root/pkgs/development/python-modules/pluginbase/default.nix
blob: c0d44e2851e27cff0ec9ea25fba324c5666c5dfe (plain) (blame)
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
{ stdenv, fetchPypi, buildPythonPackage, pytest }:

buildPythonPackage rec {
  version = "1.0.0";
  pname = "pluginbase";

  src = fetchPypi {
    inherit pname version;
    sha256 = "497894df38d0db71e1a4fbbfaceb10c3ef49a3f95a0582e11b75f8adaa030005";
  };

  checkInputs = [ pytest ];

  checkPhase = ''
    cd tests
    PYTHONPATH=.. pytest
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/mitsuhiko/pluginbase;
    description = "A support library for building plugins sytems in Python";
    license = licenses.bsd3;
    platforms = platforms.all;
  };
}