nixpkgs-suyu/pkgs/development/tools/devpi-client/default.nix

60 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, buildPythonApplication
, fetchPypi
# buildInputs
, glibcLocales
, pkginfo
, check-manifest
# propagatedBuildInputs
, py
, devpi-common
, pluggy
, setuptools
# CheckInputs
, pytest
, pytest-flake8
, webtest
, mock
, devpi-server
, tox
, sphinx
, wheel
2017-12-05 11:30:07 +01:00
, git
, mercurial
2020-06-03 08:59:29 +02:00
}:
2015-12-15 21:46:01 +01:00
buildPythonApplication rec {
2017-10-04 14:40:20 +02:00
pname = "devpi-client";
2020-11-20 20:05:22 +01:00
version = "5.2.1";
2015-12-15 21:46:01 +01:00
src = fetchPypi {
2017-10-04 14:40:20 +02:00
inherit pname version;
2020-11-20 20:05:22 +01:00
sha256 = "74ff365efeaa7b78c9eb7f6d7bd349ccd6252a6cdf879bcb4137ee5ff0fb127a";
2015-12-15 21:46:01 +01:00
};
buildInputs = [ glibcLocales pkginfo check-manifest ];
propagatedBuildInputs = [ py devpi-common pluggy setuptools ];
checkInputs = [
pytest pytest-flake8 webtest mock
devpi-server tox
sphinx wheel git mercurial
];
2020-06-03 08:59:29 +02:00
# --fast skips tests which try to start a devpi-server improperly
2017-12-05 11:30:07 +01:00
checkPhase = ''
2020-06-03 08:59:29 +02:00
HOME=$TMPDIR py.test --fast
2017-12-05 11:30:07 +01:00
'';
2016-10-17 16:24:15 +02:00
LC_ALL = "en_US.UTF-8";
meta = with lib; {
homepage = "http://doc.devpi.net";
2017-12-05 11:30:07 +01:00
description = "Client for devpi, a pypi index server and packaging meta tool";
license = licenses.mit;
maintainers = with maintainers; [ lewo makefu ];
2015-12-15 21:46:01 +01:00
};
2017-12-05 11:30:07 +01:00
2015-12-15 21:46:01 +01:00
}