depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-test-utils/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

52 lines
917 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, setuptools-scm
, wheel
, pytestCheckHook
, pytest
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-test-utils";
version = "0.0.8";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-5gB+hnJR2+NQd/n7RGrX1bzfKt8Np7IbWw61SZgNVJY=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
buildInputs = [
pytest
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytest_test_utils"
];
meta = with lib; {
description = "Pytest utilities for tests";
homepage = "https://github.com/iterative/pytest-test-utils";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}