summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/json-home-client/default.nix
blob: 828c18e1f5a0e9072ef2a237e577c55b1e92b78e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  # build inputs
  typing-extensions,
  uri-template,
}:

buildPythonPackage rec {
  pname = "json-home-client";
  version = "1.1.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "plinss";
    repo = "json_home_client";
    rev = "v${version}";
    hash = "sha256-DhnvvY1nMe1sdRE+OgjBt4TsLmiqnD8If4rl700zW9E=";
  };

  postPatch = ''
    sed -i -e 's/0.0.0/${version}/' setup.py
  '';

  propagatedBuildInputs = [
    typing-extensions
    uri-template
  ];

  pythonImportsCheck = [ "json_home_client" ];

  meta = {
    description = "Client class for calling http+json APIs in Python";
    homepage = "https://github.com/plinss/json_home_client";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}