Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 39 lines 833 B view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "myuplink"; 11 version = "0.7.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "pajzo"; 16 repo = "myuplink"; 17 tag = version; 18 hash = "sha256-r06aap8FiRslRRgKKSH7vNzpoVn6rX8ZR0oQ0D68xDo="; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.cfg \ 23 --replace-fail "%%VERSION_NO%%" "${version}" 24 ''; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ aiohttp ]; 29 30 pythonImportsCheck = [ "myuplink" ]; 31 32 meta = { 33 description = "Module to interact with the myUplink API"; 34 homepage = "https://github.com/pajzo/myuplink"; 35 changelog = "https://github.com/pajzo/myuplink/releases/tag/${version}"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ fab ]; 38 }; 39}