Skip to content

Commit

Permalink
pythonPackages.pytest-httpbin: correct meta; tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Apr 27, 2017
1 parent e66c922 commit c797550
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions pkgs/development/python-modules/pytest-httpbin/default.nix
@@ -1,29 +1,35 @@
{ buildPythonPackage
, lib
, fetchurl
, pythonPackages
, fetchFromGitHub
, pytest
, flask
, decorator
, httpbin
, six
, requests2
}:

let
pname = "pytest-httpbin";
buildPythonPackage rec {
name = "pytest-httpbin-${version}";
version = "0.2.3";
in buildPythonPackage rec {
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5";
src = fetchFromGitHub {
owner = "kevin1024";
repo = "pytest-httpbin";
rev = "v${version}";
sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks";
};

buildInputs = with pythonPackages; [ pytest httpbin ];
propagatedBuildInputs = [];
checkPhase = ''
py.test -k "not test_chunked_encoding"
'';

# Tests in neither the archive nor the repo
doCheck = false;
buildInputs = [ pytest ];
propagatedBuildInputs = [ flask decorator httpbin six requests2 ];

meta = {
description = "py.test plugin to store test expectations and mark tests based on them";
homepage = https://github.com/gsnedders/pytest-expect;
description = "Easily test your HTTP library against a local copy of httpbin.org";
homepage = https://github.com/kevin1024/pytest-httpbin;
license = lib.licenses.mit;
};
}
Expand Down

0 comments on commit c797550

Please sign in to comment.