mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00

Diff: https://github.com/codesalatdev/python-picnic-api/compare/refs/tags/v1.3.0...refs/tags/v1.3.1 Changelog: https://github.com/codesalatdev/python-picnic-api/releases/tag/v1.3.1
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
lib,
|
|
pytestCheckHook,
|
|
python-dotenv,
|
|
requests,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-picnic-api2";
|
|
version = "1.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "codesalatdev";
|
|
repo = "python-picnic-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-xa3Ir3OcePFwXemHSR78HhebtCVPObo9oM0h9K1DIQk=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
requests
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [ "python_picnic_api2" ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|