depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-test-utils/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

46 lines
814 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, 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=";
};
nativeBuildInputs = [
setuptools
];
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 ];
};
}