diff --git a/pkgs/development/tools/devpi-client/default.nix b/pkgs/development/tools/devpi-client/default.nix index 3108ffdcbba9..dc105a846876 100644 --- a/pkgs/development/tools/devpi-client/default.nix +++ b/pkgs/development/tools/devpi-client/default.nix @@ -1,40 +1,65 @@ { stdenv -, pythonPackages +, buildPythonApplication +, fetchPypi +# buildInputs , glibcLocales +, pkginfo +, check-manifest +# propagatedBuildInputs +, py +, devpi-common +, pluggy +, setuptools +# CheckInputs +, pytest +, pytest-flake8 +, webtest +, mock , devpi-server +, tox +, sphinx +, wheel , git , mercurial } : -pythonPackages.buildPythonApplication rec { +buildPythonApplication rec { pname = "devpi-client"; - version = "4.1.0"; + version = "5.0.0"; - src = pythonPackages.fetchPypi { + src = fetchPypi { inherit pname version; - sha256 = "0f5jkvxx9fl8v5vwbwmplqhjsdfgiib7j3zvn0zxd8krvi2s38fq"; + sha256 = "0hyj3xc5c6658slk5wgcr9rh7hwi5r3hzxk1p6by61sqx5r38v3q"; }; - checkInputs = with pythonPackages; [ - pytest pytest-flakes webtest mock - devpi-server tox - sphinx wheel git mercurial detox - setuptools - ]; + buildInputs = [ glibcLocales pkginfo check-manifest ]; + + propagatedBuildInputs = [ py devpi-common pluggy setuptools ]; + + checkInputs = [ + pytest pytest-flake8 webtest mock + devpi-server tox + sphinx wheel git mercurial + ]; + checkPhase = '' export PATH=$PATH:$out/bin export HOME=$TMPDIR # fix tests failing in sandbox due to "/homeless-shelter" - # setuptools do not get propagated into the tox call (cannot import setuptools) - rm testing/test_test.py + # 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'] - # test_pypi_index_attributes tries to connect to upstream pypi - py.test -k 'not test_pypi_index_attributes' testing + py.test -k 'not test_pypi_index_attributes \ + and not test_test \ + and not test_index \ + and not test_upload' testing ''; LC_ALL = "en_US.UTF-8"; - buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ]; - propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ]; meta = with stdenv.lib; { homepage = http://doc.devpi.net; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 057e179b3b76..4e84b42bf093 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7526,7 +7526,7 @@ in dbmate = callPackage ../development/tools/database/dbmate { }; - devpi-client = callPackage ../development/tools/devpi-client {}; + devpi-client = python3Packages.callPackage ../development/tools/devpi-client {}; devpi-server = callPackage ../development/tools/devpi-server {};