summary refs log tree commit diff
path: root/pkgs/development/python-modules/devpi-common/default.nix
blob: 25d9353e155ee14866eb78e8c7cc6e3771673e98 (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
26
27
28
29
30
{ lib, buildPythonPackage, fetchPypi
, requests
, py
, pytest
, pytest-flake8
}:

buildPythonPackage rec {
  pname = "devpi-common";
  version = "3.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1pfl29pnfn120rqv3zwxc22i1hyywwg60rcck9hzxsllbhmfbjqh";
  };

  propagatedBuildInputs = [ requests py ];
  checkInputs = [ pytest pytest-flake8 ];

  checkPhase = ''
    py.test
  '';

  meta = with lib; {
    homepage = "https://github.com/devpi/devpi";
    description = "Utilities jointly used by devpi-server and devpi-client";
    license = licenses.mit;
    maintainers = with maintainers; [ lewo makefu ];
  };
}