mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
devpi-client: enable tests
This commit is contained in:
parent
29672cf7ce
commit
7e39ecba68
@ -1,7 +1,10 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, pythonPackages
|
, pythonPackages
|
||||||
, glibcLocales
|
, glibcLocales
|
||||||
, devpi-server
|
, devpi-server
|
||||||
|
, git
|
||||||
|
, mercurial
|
||||||
} :
|
} :
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
@ -14,19 +17,31 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
|
sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
checkInputs = with pythonPackages; [
|
||||||
checkInputs = with pythonPackages; [ pytest webtest mock devpi-server ];
|
pytest webtest mock
|
||||||
checkPhase = "py.test";
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
buildInputs = with pythonPackages; [ glibcLocales pkginfo tox check-manifest ];
|
buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ];
|
||||||
propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy ];
|
propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ];
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://doc.devpi.net;
|
homepage = http://doc.devpi.net;
|
||||||
description = "Github-style pypi index server and packaging meta tool";
|
description = "Client for devpi, a pypi index server and packaging meta tool";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with stdenv.lib.maintainers; [ lewo makefu ];
|
maintainers = with maintainers; [ lewo makefu ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user