3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #32335 from makefu/pkgs/devpi-common/update

init devpi-server at 4.3.1, bump devpi-client
This commit is contained in:
Jörg Thalheim 2017-12-05 12:44:02 +00:00 committed by GitHub
commit 7e6068c353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 130 additions and 20 deletions

View file

@ -0,0 +1,31 @@
{ lib
, cffi
, six
, hypothesis
, pytest
, wheel
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "argon2_cffi";
version = "16.3.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1ap3il3j1pjyprrhpfyhc21izpmhzhfb5s69vlzc65zvd1nj99cr";
};
propagatedBuildInputs = [ cffi six ];
checkInputs = [ hypothesis pytest wheel ];
checkPhase = ''
pytest tests
'';
meta = {
description = "Secure Password Hashes for Python";
homepage = https://argon2-cffi.readthedocs.io/;
};
}

View file

@ -2,20 +2,18 @@
with pythonPackages;buildPythonPackage rec {
pname = "devpi-common";
version = "3.1.0";
version = "3.2.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "d89634a57981ed43cb5dcd25e00c9454ea111189c5ddc08d945b3d5187ada5fd";
sha256 = "0rh119iw5hk41gsvbjr0wixvl1i4f0b1vcnw9ym35rmcp517z0wb";
};
propagatedBuildInputs = [ requests py ];
checkInputs = [ pytest ];
checkPhase = ''
# Don't know why this test is failing!
substituteInPlace testing/test_request.py --replace "test_env" "noop_test_env"
py.test
'';

View file

@ -3,6 +3,7 @@
, fetchPypi
, nose
, bcrypt
, argon2_cffi
}:
buildPythonPackage rec {
@ -16,7 +17,7 @@ buildPythonPackage rec {
};
checkInputs = [ nose ];
propagatedBuildInputs = [ bcrypt ];
propagatedBuildInputs = [ bcrypt argon2_cffi ];
meta = {
description = "A password hashing library for Python";

View file

@ -0,0 +1,27 @@
{ buildPythonPackage
, fetchPypi
, lib
, pexpect
, pytest
}:
buildPythonPackage rec {
pname = "pytest-timeout";
version = "1.2.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1kdp6qbh5v1168l99rba5yfzvy05gmzkmkhldgp36p9xcdjd5dv8";
};
buildInputs = [ pytest ];
checkInputs = [ pytest pexpect ];
checkPhase = ''pytest -ra'';
meta = with lib;{
description = "py.test plugin to abort hanging tests";
homepage = http://bitbucket.org/pytest-dev/pytest-timeout/;
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}

View file

@ -1,28 +1,47 @@
{ stdenv, pythonPackages, glibcLocales} :
{ stdenv
, lib
, pythonPackages
, glibcLocales
, devpi-server
, git
, mercurial
} :
pythonPackages.buildPythonApplication rec {
name = "${pname}-${version}";
pname = "devpi-client";
version = "3.1.0rc1";
version = "3.1.0";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0kfyva886k9zxmilqb2yviwqzyvs3n36if3s56y4clbvw9hr2lc3";
sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
};
# requires devpi-server which is currently not packaged
doCheck = true;
checkInputs = with pythonPackages; [ pytest webtest mock ];
checkPhase = "py.test";
checkInputs = with pythonPackages; [
pytest webtest mock
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";
buildInputs = with pythonPackages; [ glibcLocales pkginfo tox check-manifest ];
propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy ];
buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ];
propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ];
meta = {
meta = with stdenv.lib; {
homepage = http://doc.devpi.net;
description = "Github-style pypi index server and packaging meta tool";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ lewo makefu ];
description = "Client for devpi, a pypi index server and packaging meta tool";
license = licenses.mit;
maintainers = with maintainers; [ lewo makefu ];
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, pythonPackages, glibcLocales, nginx }:
pythonPackages.buildPythonApplication rec {
name = "${pname}-${version}";
pname = "devpi-server";
version = "4.3.1";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0x6ks2sbpknznxaqlh0gf5hcvhkmgixixq2zs91wgfqxk4vi4s6n";
};
propagatedBuildInputs = with pythonPackages;
[ devpi-common execnet itsdangerous pluggy waitress pyramid passlib ];
checkInputs = with pythonPackages; [ nginx webtest pytest beautifulsoup4 pytest-timeout pytest-catchlog mock pyyaml ];
checkPhase = ''
cd test_devpi_server/
PATH=$PATH:$out/bin pytest --slow -rfsxX
'';
meta = with stdenv.lib;{
homepage = http://doc.devpi.net;
description = "Github-style pypi index server and packaging meta tool";
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}

View file

@ -5530,6 +5530,8 @@ with pkgs;
devpi-client = callPackage ../development/tools/devpi-client {};
devpi-server = callPackage ../development/tools/devpi-server {};
dotty = callPackage ../development/compilers/scala/dotty.nix { jre = jre8;};
drumstick = callPackage ../development/libraries/drumstick { };

View file

@ -162,6 +162,8 @@ in {
ansicolor = callPackage ../development/python-modules/ansicolor { };
argon2_cffi = callPackage ../development/python-modules/argon2_cffi { };
asana = callPackage ../development/python-modules/asana { };
asn1crypto = callPackage ../development/python-modules/asn1crypto { };
@ -3766,6 +3768,8 @@ in {
};
};
pytest-timeout = callPackage ../development/python-modules/pytest-timeout { };
pytest-warnings = callPackage ../development/python-modules/pytest-warnings { };
pytestpep8 = buildPythonPackage rec {
@ -24458,6 +24462,7 @@ EOF
parse-type = callPackage ../development/python-modules/parse-type { };
ephem = callPackage ../development/python-modules/ephem { };
});
in fix' (extends overrides packages)