-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonPackages.pytest-datadir: init at 1.3.1
- Loading branch information
1 parent
db2ce64
commit f3ee91d
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
pkgs/development/python-modules/pytest-datadir/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,32 @@ | ||
{ stdenv, buildPythonPackage, fetchFromGitHub | ||
, setuptools_scm, pytest, cmake | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pytest-datadir"; | ||
version = "1.3.1"; | ||
format = "pyproject"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "gabrielcnr"; | ||
repo = pname; | ||
rev = version; | ||
sha256 = "0kwgp6sqnqnmww5r0dkmyfpi0lmw0iwxz3fnwn2fs8w6bvixzznf"; | ||
}; | ||
|
||
nativeBuildInputs = [ setuptools_scm ]; | ||
|
||
preBuild = '' | ||
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" | ||
''; | ||
|
||
checkInputs = [ pytest ]; | ||
checkPhase = "pytest"; | ||
|
||
meta = with stdenv.lib; { | ||
homepage = "https://github.com/gabrielcnr/pytest-datadir"; | ||
description = "pytest plugin for manipulating test data directories and files"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ metadark ]; | ||
}; | ||
} |
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