nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 781 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 # build inputs 6 typing-extensions, 7 uri-template, 8}: 9 10buildPythonPackage rec { 11 pname = "json-home-client"; 12 version = "1.1.1"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "plinss"; 17 repo = "json_home_client"; 18 rev = "v${version}"; 19 hash = "sha256-DhnvvY1nMe1sdRE+OgjBt4TsLmiqnD8If4rl700zW9E="; 20 }; 21 22 postPatch = '' 23 sed -i -e 's/0.0.0/${version}/' setup.py 24 ''; 25 26 propagatedBuildInputs = [ 27 typing-extensions 28 uri-template 29 ]; 30 31 pythonImportsCheck = [ "json_home_client" ]; 32 33 meta = { 34 description = "Client class for calling http+json APIs in Python"; 35 homepage = "https://github.com/plinss/json_home_client"; 36 license = lib.licenses.mit; 37 maintainers = [ ]; 38 }; 39}