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