Merge pull request #25207 from matthiasbeyer/update-rtv
rtv: 1.14.1 -> 1.15.1
This commit is contained in:
51
pkgs/development/python-modules/coveralls/default.nix
Normal file
51
pkgs/development/python-modules/coveralls/default.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{ buildPythonPackage
|
||||
, lib
|
||||
, fetchPypi
|
||||
, mock
|
||||
, pytest_27
|
||||
, sh
|
||||
, coverage
|
||||
, docopt
|
||||
, requests2
|
||||
, git
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "coveralls";
|
||||
name = "${pname}-python-${version}";
|
||||
version = "1.1";
|
||||
|
||||
# wanted by tests
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0238hgdwbvriqxrj22zwh0rbxnhh9c6hh75i39ll631vq62h65il";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
mock
|
||||
sh
|
||||
pytest_27
|
||||
git
|
||||
];
|
||||
|
||||
# FIXME: tests requires .git directory to be present
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
python setup.py test
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
coverage
|
||||
docopt
|
||||
requests2
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Show coverage stats online via coveralls.io";
|
||||
homepage = https://github.com/coveralls-clients/coveralls-python;
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
27
pkgs/development/python-modules/httpbin/default.nix
Normal file
27
pkgs/development/python-modules/httpbin/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, flask
|
||||
, markupsafe
|
||||
, decorator
|
||||
, itsdangerous
|
||||
, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httpbin";
|
||||
version = "0.5.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6b57f563900ecfe126015223a259463848daafbdc2687442317c0992773b9054";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask markupsafe decorator itsdangerous six ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/kennethreitz/httpbin;
|
||||
description = "HTTP Request & Response Service";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
17
pkgs/development/python-modules/kitchen/default.nix
Normal file
17
pkgs/development/python-modules/kitchen/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||
buildPythonPackage rec {
|
||||
pname = "kitchen";
|
||||
version = "1.2.4";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ggv3p4x8jvmmzhp0xm00h6pvh1g0gmycw71rjwagnrj8n23vxrq";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Kitchen contains a cornucopia of useful code";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ mornfall ];
|
||||
};
|
||||
}
|
||||
36
pkgs/development/python-modules/pytest-httpbin/default.nix
Normal file
36
pkgs/development/python-modules/pytest-httpbin/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ buildPythonPackage
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, pytest
|
||||
, flask
|
||||
, decorator
|
||||
, httpbin
|
||||
, six
|
||||
, requests2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "pytest-httpbin-${version}";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kevin1024";
|
||||
repo = "pytest-httpbin";
|
||||
rev = "v${version}";
|
||||
sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
py.test -k "not test_chunked_encoding"
|
||||
'';
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ flask decorator httpbin six requests2 ];
|
||||
|
||||
meta = {
|
||||
description = "Easily test your HTTP library against a local copy of httpbin.org";
|
||||
homepage = https://github.com/kevin1024/pytest-httpbin;
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
44
pkgs/development/python-modules/vcrpy/default.nix
Normal file
44
pkgs/development/python-modules/vcrpy/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ buildPythonPackage
|
||||
, lib
|
||||
, pkgs
|
||||
, pyyaml
|
||||
, mock
|
||||
, contextlib2
|
||||
, wrapt
|
||||
, pytest_27
|
||||
, httpbin
|
||||
, pytest-httpbin
|
||||
, yarl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.10.5";
|
||||
name = "vcrpy-${version}";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/v/vcrpy/vcrpy-${version}.tar.gz";
|
||||
sha256 = "12kncg6jyvj15mi8ca74514f2x1ih753nhyz769nwvh39r468167";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pyyaml
|
||||
mock
|
||||
contextlib2
|
||||
wrapt
|
||||
pytest_27
|
||||
httpbin
|
||||
pytest-httpbin
|
||||
yarl
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
py.test --ignore=tests/integration -k "TestVCRConnection.testing_connect"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
|
||||
homepage = https://github.com/kevin1024/vcrpy;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user