1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 hatchling, 5 lib, 6 pytestCheckHook, 7 python-dotenv, 8 requests, 9 typing-extensions, 10}: 11 12buildPythonPackage rec { 13 pname = "python-picnic-api2"; 14 version = "1.3.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "codesalatdev"; 19 repo = "python-picnic-api"; 20 tag = "v${version}"; 21 hash = "sha256-xa3Ir3OcePFwXemHSR78HhebtCVPObo9oM0h9K1DIQk="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 dependencies = [ 27 requests 28 typing-extensions 29 ]; 30 31 pythonImportsCheck = [ "python_picnic_api2" ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTestPaths = [ 36 # tests access the actual API 37 "integration_tests" 38 ]; 39 40 meta = { 41 changelog = "https://github.com/codesalatdev/python-picnic-api/releases/tag/${src.tag}"; 42 description = "Fork of the Unofficial Python wrapper for the Picnic API"; 43 homepage = "https://github.com/codesalatdev/python-picnic-api"; 44 license = lib.licenses.asl20; 45 maintainers = with lib.maintainers; [ dotlambda ]; 46 }; 47}