Files
nixpkgs/pkgs/development/python-modules/pytest-pytestrail/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

50 lines
1002 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pytest
, testrail-api
}:
buildPythonPackage rec {
pname = "pytest-pytestrail";
version = "0.10.5";
format = "setuptools";
SETUPTOOLS_SCM_PRETEND_VERSION = version;
src = fetchFromGitHub {
owner = "tolstislon";
repo = "pytest-pytestrail";
rev = version;
sha256 = "sha256-y34aRxQ8mu6b6GBRMFVzn1shMVc7TumdjRS3daMEZJM=";
};
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
testrail-api
];
# all tests require network accesss
doCheck = false;
pythonImportsCheck = [
"pytest_pytestrail"
];
meta = with lib; {
description = "Pytest plugin for interaction with TestRail";
homepage = "https://github.com/tolstislon/pytest-pytestrail";
changelog = "https://github.com/tolstislon/pytest-pytestrail/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ aanderse ];
};
}