Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytest-datadir / default.nix
blob1dc218c08085c16249ee0ee4f086022009ed955c
1 { lib, buildPythonPackage, fetchFromGitHub
2 , setuptools_scm, pytest, cmake
3 }:
5 buildPythonPackage rec {
6   pname = "pytest-datadir";
7   version = "1.3.1";
8   format = "pyproject";
10   src = fetchFromGitHub {
11     owner = "gabrielcnr";
12     repo = pname;
13     rev = version;
14     sha256 = "0kwgp6sqnqnmww5r0dkmyfpi0lmw0iwxz3fnwn2fs8w6bvixzznf";
15   };
17   nativeBuildInputs = [ setuptools_scm ];
19   preBuild = ''
20     export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
21   '';
23   checkInputs = [ pytest ];
24   checkPhase = "pytest";
26   meta = with lib; {
27     homepage = "https://github.com/gabrielcnr/pytest-datadir";
28     description = "pytest plugin for manipulating test data directories and files";
29     license = licenses.mit;
30     maintainers = with maintainers; [ metadark ];
31   };