2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
responses,
|
|
|
|
setuptools,
|
|
|
|
urllib3,
|
2022-09-09 14:08:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tank-utility";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.5.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "krismolendyke";
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-h9y3X+FSzSFt+bd/chz+x0nocHaKZ8DvreMxAYMs8/E=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
urllib3
|
2024-01-13 08:15:51 +00:00
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2022-11-02 22:02:43 +00:00
|
|
|
responses
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "tank_utility" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for the Tank Utility API";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tank-utility";
|
2022-09-09 14:08:57 +00:00
|
|
|
homepage = "https://github.com/krismolendyke/tank-utility";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/krismolendyke/tank-utility/blob/${version}/HISTORY.rst";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|