at master 909 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 nix-update-script, 7 pythonOlder, 8 typing-extensions, 9}: 10 11buildPythonPackage rec { 12 pname = "nexus-rpc"; 13 version = "1.1.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "nexus-rpc"; 20 repo = "sdk-python"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-CZOCNgYvlQCc/Ws2cEuryyVELS/FiNgLTYHwHp70yhM="; 23 fetchSubmodules = true; 24 }; 25 26 build-system = [ 27 hatchling 28 ]; 29 30 dependencies = [ 31 typing-extensions 32 ]; 33 34 pythonImportsCheck = [ 35 "nexusrpc" 36 ]; 37 38 passthru.updateScript = nix-update-script { }; 39 40 meta = { 41 description = "Nexus Python SDK"; 42 homepage = "https://temporal.io/"; 43 changelog = "https://github.com/nexus-rpc/sdk-python/releases/tag/${version}"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ 46 jpds 47 ]; 48 }; 49}