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