pythonPackages.pytest-httpbin: correct `meta`; tests

This commit is contained in:
Jörg Thalheim 2017-04-27 08:24:55 +02:00
parent e66c9221d6
commit c797550957
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
1 changed files with 21 additions and 15 deletions

View File

@ -1,29 +1,35 @@
{ buildPythonPackage { buildPythonPackage
, lib , lib
, fetchurl , fetchFromGitHub
, pythonPackages , pytest
, flask
, decorator
, httpbin
, six
, requests2
}: }:
let buildPythonPackage rec {
pname = "pytest-httpbin"; name = "pytest-httpbin-${version}";
version = "0.2.3"; version = "0.2.3";
in buildPythonPackage rec {
name = "${pname}-${version}";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; owner = "kevin1024";
sha256 = "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"; repo = "pytest-httpbin";
rev = "v${version}";
sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks";
}; };
buildInputs = with pythonPackages; [ pytest httpbin ]; checkPhase = ''
propagatedBuildInputs = []; py.test -k "not test_chunked_encoding"
'';
# Tests in neither the archive nor the repo buildInputs = [ pytest ];
doCheck = false; propagatedBuildInputs = [ flask decorator httpbin six requests2 ];
meta = { meta = {
description = "py.test plugin to store test expectations and mark tests based on them"; description = "Easily test your HTTP library against a local copy of httpbin.org";
homepage = https://github.com/gsnedders/pytest-expect; homepage = https://github.com/kevin1024/pytest-httpbin;
license = lib.licenses.mit; license = lib.licenses.mit;
}; };
} }