2017-12-04 15:35:55 +01:00
|
|
|
{ stdenv
|
|
|
|
, pythonPackages
|
|
|
|
, glibcLocales
|
|
|
|
, devpi-server
|
2017-12-05 11:30:07 +01:00
|
|
|
, git
|
|
|
|
, mercurial
|
2017-12-04 15:35:55 +01:00
|
|
|
} :
|
2015-12-15 21:46:01 +01:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-10-04 14:40:20 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "devpi-client";
|
2018-09-22 18:07:00 +02:00
|
|
|
version = "4.1.0";
|
2015-12-15 21:46:01 +01:00
|
|
|
|
2017-10-04 14:40:20 +02:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2018-09-22 18:07:00 +02:00
|
|
|
sha256 = "0f5jkvxx9fl8v5vwbwmplqhjsdfgiib7j3zvn0zxd8krvi2s38fq";
|
2015-12-15 21:46:01 +01:00
|
|
|
};
|
2017-12-04 15:35:55 +01:00
|
|
|
|
2017-12-05 11:30:07 +01:00
|
|
|
checkInputs = with pythonPackages; [
|
2018-09-22 18:07:00 +02:00
|
|
|
pytest pytestflakes webtest mock
|
2017-12-05 11:30:07 +01:00
|
|
|
devpi-server tox
|
|
|
|
sphinx wheel git mercurial detox
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
checkPhase = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
2018-09-22 18:07:00 +02:00
|
|
|
export HOME=$TMPDIR # fix tests failing in sandbox due to "/homeless-shelter"
|
2017-12-05 11:30:07 +01:00
|
|
|
|
|
|
|
# setuptools do not get propagated into the tox call (cannot import setuptools)
|
|
|
|
rm testing/test_test.py
|
|
|
|
|
2018-02-15 22:04:32 +01:00
|
|
|
# test_pypi_index_attributes tries to connect to upstream pypi
|
2018-09-22 18:07:00 +02:00
|
|
|
py.test -k 'not test_pypi_index_attributes' testing
|
2017-12-05 11:30:07 +01:00
|
|
|
'';
|
2016-04-14 14:06:32 +02:00
|
|
|
|
2016-10-17 16:24:15 +02:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2017-12-05 11:30:07 +01:00
|
|
|
buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ];
|
2016-04-14 14:06:32 +02:00
|
|
|
|
2017-12-05 11:30:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-12-15 21:46:01 +01:00
|
|
|
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
|
|
|
}
|