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

72 lines
1.7 KiB
Nix
Raw Normal View History

{ 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 10:30:07 +00:00
, git
, mercurial
} :
2015-12-15 20:46:01 +00:00
buildPythonApplication rec {
2017-10-04 13:40:20 +01:00
pname = "devpi-client";
version = "5.0.0";
2015-12-15 20:46:01 +00:00
src = fetchPypi {
2017-10-04 13:40:20 +01:00
inherit pname version;
sha256 = "0hyj3xc5c6658slk5wgcr9rh7hwi5r3hzxk1p6by61sqx5r38v3q";
2015-12-15 20:46:01 +00: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
];
2017-12-05 10:30:07 +00:00
checkPhase = ''
export PATH=$PATH:$out/bin
export HOME=$TMPDIR # fix tests failing in sandbox due to "/homeless-shelter"
2017-12-05 10:30:07 +00:00
# test_pypi_index_attributes: tries to connect to upstream pypi
# test_test: setuptools does not get propagated into the tox call (cannot import setuptools), also no detox
# test_index: hangs forever
# test_upload: fails multiple times with
# > assert args[0], args
# F AssertionError: [None, local('/build/pytest-of-nixbld/pytest-0/test_export_attributes_git_set0/repo2/setupdir/setup.py'), '--name']
2017-12-05 10:30:07 +00:00
py.test -k 'not test_pypi_index_attributes \
and not test_test \
and not test_index \
and not test_upload' testing
2017-12-05 10:30:07 +00:00
'';
2016-10-17 15:24:15 +01:00
LC_ALL = "en_US.UTF-8";
2017-12-05 10:30:07 +00:00
meta = with stdenv.lib; {
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
}