python3Packages.nsw-fuel-api-client: init at 1.1.3
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
requests,
|
||||
pytestCheckHook,
|
||||
requests-mock,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nsw-fuel-api-client";
|
||||
version = "1.1.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nickw444";
|
||||
repo = "nsw-fuel-api-client";
|
||||
tag = version;
|
||||
hash = "sha256-3nkBDLmFOfYLvG5fi2subA9zxb51c7zWlhT4GaCQo9I=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"nsw_fuel"
|
||||
];
|
||||
|
||||
pytestFlags = [
|
||||
"nsw_fuel_tests/unit.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "API Client for NSW Government Fuel Check application";
|
||||
homepage = "https://github.com/nickw444/nsw-fuel-api-client";
|
||||
changelog = "https://github.com/nickw444/nsw-fuel-api-client/releases/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.jamiemagee ];
|
||||
};
|
||||
}
|
||||
@@ -10484,6 +10484,8 @@ self: super: with self; {
|
||||
|
||||
nskeyedunarchiver = callPackage ../development/python-modules/nskeyedunarchiver { };
|
||||
|
||||
nsw-fuel-api-client = callPackage ../development/python-modules/nsw-fuel-api-client { };
|
||||
|
||||
nsz = callPackage ../development/python-modules/nsz { };
|
||||
|
||||
ntc-templates = callPackage ../development/python-modules/ntc-templates { };
|
||||
|
||||
Reference in New Issue
Block a user