summary refs log tree commit diff
path: root/pkgs/development/python-modules/dependency-injector/default.nix
blob: 05f1c965f401acd8160c4e1ce5b956792ff5c6ca (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, buildPythonPackage, fetchPypi, six, unittest2 }:

buildPythonPackage rec {
  pname = "dependency-injector";
  version = "3.13.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0kgb40qspibr1x8ksv0whrr7v0jy20dnqzmc591hm2y4kwzl5hdw";
  };

  propagatedBuildInputs = [ six ];
  checkInputs = [ unittest2 ];

  checkPhase = ''
    unit2 discover tests/unit
  '';

  meta = with stdenv.lib; {
    description = "Dependency injection microframework for Python";
    homepage = https://github.com/ets-labs/python-dependency-injector;
    license = licenses.bsd3;
    maintainers = with maintainers; [ gerschtli ];
  };
}