Skip to content

Commit

Permalink
pythonPackages.pytest-datadir: init at 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-bruneau authored and Jon committed May 29, 2020
1 parent db2ce64 commit f3ee91d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/pytest-datadir/default.nix
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,8 @@ in {

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

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

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

pytest-dependency = callPackage ../development/python-modules/pytest-dependency { };
Expand Down

0 comments on commit f3ee91d

Please sign in to comment.