2025-03-04 09:56:44 -08:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2025-03-26 06:12:59 +01:00
|
|
|
hatchling,
|
2025-03-04 09:56:44 -08:00
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dotenv,
|
|
|
|
requests,
|
|
|
|
typing-extensions,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-picnic-api2";
|
2025-06-03 21:24:13 -07:00
|
|
|
version = "1.3.1";
|
2025-03-04 09:56:44 -08:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "codesalatdev";
|
|
|
|
repo = "python-picnic-api";
|
|
|
|
tag = "v${version}";
|
2025-06-03 21:24:13 -07:00
|
|
|
hash = "sha256-xa3Ir3OcePFwXemHSR78HhebtCVPObo9oM0h9K1DIQk=";
|
2025-03-04 09:56:44 -08:00
|
|
|
};
|
|
|
|
|
2025-03-26 06:12:59 +01:00
|
|
|
build-system = [ hatchling ];
|
2025-03-04 09:56:44 -08:00
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
requests
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "python_picnic_api2" ];
|
|
|
|
|
2025-03-26 06:12:59 +01:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2025-03-04 09:56:44 -08:00
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# tests access the actual API
|
|
|
|
"integration_tests"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/codesalatdev/python-picnic-api/releases/tag/${src.tag}";
|
|
|
|
description = "Fork of the Unofficial Python wrapper for the Picnic API";
|
|
|
|
homepage = "https://github.com/codesalatdev/python-picnic-api";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|