nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 41 lines 876 B view raw
1{ 2 lib, 3 asyncio-dgram, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hatchling, 7 ifaddr, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "keba-kecontact"; 13 version = "4.3.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "dannerph"; 18 repo = "keba-kecontact"; 19 tag = version; 20 hash = "sha256-gIqHo+J/I4vqJCs/r3ZHo3kChefTRqpVmdw3r3y3Hzk="; 21 }; 22 23 build-system = [ hatchling ]; 24 25 dependencies = [ 26 asyncio-dgram 27 ifaddr 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "keba_kecontact" ]; 33 34 meta = { 35 description = "Python library for controlling KEBA charging stations"; 36 homepage = "https://github.com/dannerph/keba-kecontact"; 37 changelog = "https://github.com/dannerph/keba-kecontact/releases/tag/${version}"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41}