Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/pypiserver/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
{ buildPythonPackage
, fetchFromGitHub
, pytest
, fetchPypi
, pytestCheckHook
, isPy27
, lib
, setuptools
, setuptools-declarative-requirements
, setuptools-scm
}:

buildPythonPackage rec {
pname = "pytest-helpers-namespace";
version = "2021.3.24";
disabled = isPy27;

src = fetchFromGitHub {
owner = "saltstack";
repo = pname;
rev = version;
sha256 = "0ikwiwp9ycgg7px78nxdkqvg7j97krb6vzqlb8fq8fvbwrj4q4v2";
src = fetchPypi {
inherit pname version;
sha256 = "0pyj2d45zagmzlajzqdnkw5yz8k49pkihbydsqkzm413qnkzb38q";
};

buildInputs = [ pytest ];
nativeBuildInputs = [ setuptools setuptools-declarative-requirements setuptools-scm ];

checkInputs = [ pytest ];
checkInputs = [ pytestCheckHook ];

checkPhase = ''
pytest
'';

# The tests fail with newest pytest. They passed with pytest_3, which no longer exists
doCheck = false;
pythonImportsCheck = [ "pytest_helpers_namespace" ];

meta = with lib; {
homepage = "https://github.com/saltstack/pytest-helpers-namespace";
Expand Down
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5896,6 +5896,8 @@ in {

pypinyin = callPackage ../development/python-modules/pypinyin { };

pypiserver = callPackage ../development/python-modules/pypiserver { };

pyplaato = callPackage ../development/python-modules/pyplaato { };

pyplatec = callPackage ../development/python-modules/pyplatec { };
Expand Down Expand Up @@ -7344,6 +7346,8 @@ in {

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-lint = callPackage ../development/python-modules/setuptools-lint { };
Expand Down