Skip to content

Commit

Permalink
pytest-httpbin: init at 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasbeyer committed Apr 26, 2017
1 parent aea9257 commit 47403cf
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/pytest-httpbin/default.nix
@@ -0,0 +1,30 @@
{ buildPythonPackage
, lib
, fetchurl
, pythonPackages
}:

let
pname = "pytest-httpbin";
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";
};

buildInputs = with pythonPackages; [ pytest httpbin ];
propagatedBuildInputs = [];

# Tests in neither the archive nor the repo
doCheck = false;

meta = {
description = "py.test plugin to store test expectations and mark tests based on them";
homepage = https://github.com/gsnedders/pytest-expect;
license = lib.licenses.mit;
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -5191,6 +5191,8 @@ in {
};
};

pytest-httpbin = callPackage ../development/python-modules/pytest-httpbin { };

pytestcache = buildPythonPackage rec {
name = "pytest-cache-1.0";
src = pkgs.fetchurl {
Expand Down

0 comments on commit 47403cf

Please sign in to comment.