nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "dynalite-devices"; 12 version = "0.1.48"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "ziv1234"; 17 repo = "python-dynalite-devices"; 18 tag = "v${version}"; 19 hash = "sha256-i88aIsRNsToSceQdwfspJg+Y5MO5zC4O6EkyhrYR27g="; 20 }; 21 22 postPatch = '' 23 sed -i '/^addopts/d' setup.cfg 24 ''; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 nativeCheckInputs = [ 29 pytest-asyncio 30 pytestCheckHook 31 ]; 32 33 pytestFlags = [ "--asyncio-mode=auto" ]; 34 35 pythonImportsCheck = [ "dynalite_devices_lib" ]; 36 37 # it would use the erroneous tag v0.47 38 passthru.skipBulkUpdate = true; 39 40 meta = { 41 description = "Unofficial Dynalite DyNET interface creating devices"; 42 homepage = "https://github.com/ziv1234/python-dynalite-devices"; 43 changelog = "https://github.com/ziv1234/python-dynalite-devices/releases/tag/v${version}"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ dotlambda ]; 46 }; 47}