Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aea9257
commit 47403cf
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
pkgs/development/python-modules/pytest-httpbin/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters