Merge pull request #121122 from austinbutler/fix-pytest-helpers-namespace
This commit is contained in:
commit
d15fad3dbe
40
pkgs/development/python-modules/pypiserver/default.nix
Normal file
40
pkgs/development/python-modules/pypiserver/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ buildPythonPackage, fetchFromGitHub, lib, passlib, pytestCheckHook, setuptools
|
||||||
|
, setuptools-git, twine, webtest }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pypiserver";
|
||||||
|
version = "1.4.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = pname;
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1z5rsmqgin98m6ihy1ww42fxxr6jb4hzldn8vlc9ssv7sawdz8vz";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools-git ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ setuptools ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ passlib pytestCheckHook twine webtest ];
|
||||||
|
|
||||||
|
# These tests try to use the network
|
||||||
|
disabledTests = [
|
||||||
|
"test_pipInstall_openOk"
|
||||||
|
"test_pipInstall_authedOk"
|
||||||
|
"test_hash_algos"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pypiserver" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/pypiserver/pypiserver";
|
||||||
|
description = "Minimal PyPI server for use with pip/easy_install";
|
||||||
|
license = with licenses; [ mit zlib ];
|
||||||
|
maintainers = [ maintainers.austinbutler ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,30 +1,28 @@
|
|||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchPypi
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
|
, isPy27
|
||||||
, lib
|
, lib
|
||||||
|
, setuptools
|
||||||
|
, setuptools-declarative-requirements
|
||||||
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-helpers-namespace";
|
pname = "pytest-helpers-namespace";
|
||||||
version = "2021.3.24";
|
version = "2021.3.24";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "saltstack";
|
inherit pname version;
|
||||||
repo = pname;
|
sha256 = "0pyj2d45zagmzlajzqdnkw5yz8k49pkihbydsqkzm413qnkzb38q";
|
||||||
rev = version;
|
|
||||||
sha256 = "0ikwiwp9ycgg7px78nxdkqvg7j97krb6vzqlb8fq8fvbwrj4q4v2";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
nativeBuildInputs = [ setuptools setuptools-declarative-requirements setuptools-scm ];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "pytest_helpers_namespace" ];
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
# The tests fail with newest pytest. They passed with pytest_3, which no longer exists
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/saltstack/pytest-helpers-namespace";
|
homepage = "https://github.com/saltstack/pytest-helpers-namespace";
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
{ buildPythonPackage, fetchPypi, lib, pypiserver, pytestCheckHook
|
||||||
|
, setuptools-scm, virtualenv }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "setuptools-declarative-requirements";
|
||||||
|
version = "1.2.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1l8zmcnp9h8sp8hsw7b81djaa1a9yig0y7i4phh5pihqz1gdn7yi";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ setuptools-scm ];
|
||||||
|
|
||||||
|
checkInputs = [ pypiserver pytestCheckHook virtualenv ];
|
||||||
|
|
||||||
|
# Tests use network
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "declarative_requirements" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/s0undt3ch/setuptools-declarative-requirements";
|
||||||
|
description = "Declarative setuptools Config Requirements Files Support";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = [ maintainers.austinbutler ];
|
||||||
|
};
|
||||||
|
}
|
@ -5894,6 +5894,8 @@ in {
|
|||||||
|
|
||||||
pypinyin = callPackage ../development/python-modules/pypinyin { };
|
pypinyin = callPackage ../development/python-modules/pypinyin { };
|
||||||
|
|
||||||
|
pypiserver = callPackage ../development/python-modules/pypiserver { };
|
||||||
|
|
||||||
pyplaato = callPackage ../development/python-modules/pyplaato { };
|
pyplaato = callPackage ../development/python-modules/pyplaato { };
|
||||||
|
|
||||||
pyplatec = callPackage ../development/python-modules/pyplatec { };
|
pyplatec = callPackage ../development/python-modules/pyplatec { };
|
||||||
@ -7342,6 +7344,8 @@ in {
|
|||||||
|
|
||||||
setproctitle = callPackage ../development/python-modules/setproctitle { };
|
setproctitle = callPackage ../development/python-modules/setproctitle { };
|
||||||
|
|
||||||
|
setuptools-declarative-requirements = callPackage ../development/python-modules/setuptools-declarative-requirements { };
|
||||||
|
|
||||||
setuptools-git = callPackage ../development/python-modules/setuptools-git { };
|
setuptools-git = callPackage ../development/python-modules/setuptools-git { };
|
||||||
|
|
||||||
setuptools-lint = callPackage ../development/python-modules/setuptools-lint { };
|
setuptools-lint = callPackage ../development/python-modules/setuptools-lint { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user