summary refs log tree commit diff
path: root/nix/python-flipdot-gschichtler.nix
blob: a85598ddeaee0ead80c8c75ec9095e9de091e2ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ buildPythonPackage, requests
, rootSrc
}:

buildPythonPackage rec {
  pname = "flipdot-gschichtler";
  version = import ./version.nix;

  src = rootSrc + "/clients/py";

  doCheck = false;

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

  propagatedBuildInputs = [ requests ];

  pythonImportsCheck = [ "flipdot_gschichtler" ];

  meta = {
    description = "Python client for the flipdot-gschichtler API";
  };
}