Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 54 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 colorlog, 5 fetchFromGitHub, 6 pytest-sugar, 7 pytest-timeout, 8 pytestCheckHook, 9 pythonAtLeast, 10 requests, 11 requests-mock, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "skybellpy"; 17 version = "0.6.3"; 18 pyproject = true; 19 20 # Still uses distrutils, https://github.com/MisterWil/skybellpy/issues/22 21 disabled = pythonAtLeast "3.12"; 22 23 src = fetchFromGitHub { 24 owner = "MisterWil"; 25 repo = "skybellpy"; 26 tag = "v${version}"; 27 hash = "sha256-/+9KYxXYTN0T6PoccAA/pwdwWqOzCSZdNxj6xi6oG74="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 colorlog 34 requests 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-sugar 39 pytest-timeout 40 pytestCheckHook 41 requests-mock 42 ]; 43 44 pythonImportsCheck = [ "skybellpy" ]; 45 46 meta = { 47 description = "Python wrapper for the Skybell alarm API"; 48 homepage = "https://github.com/MisterWil/skybellpy"; 49 changelog = "https://github.com/MisterWil/skybellpy/releases/tag/v${version}"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ fab ]; 52 mainProgram = "skybellpy"; 53 }; 54}