depot/third_party/nixpkgs/pkgs/development/python-modules/testrail-api/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

51 lines
1,014 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, responses
, setuptools-scm
}:
buildPythonPackage rec {
pname = "testrail-api";
version = "1.12.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tolstislon";
repo = "testrail-api";
rev = "refs/tags/${version}";
hash = "sha256-lIlTrAdNtBJdwiSFwpcHA2e+fRC+MbHS0PX7prAN+RY=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [
"testrail_api"
];
meta = with lib; {
description = "A Python wrapper of the TestRail API";
homepage = "https://github.com/tolstislon/testrail-api";
changelog = "https://github.com/tolstislon/ytestrail-api/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ aanderse ];
};
}