writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / waterfurnace / default.nix
blob2eb9b2cbd8bec2d1224fa329a23a8d2d02ea9323
2   lib,
3   buildPythonPackage,
4   click,
5   fetchFromGitHub,
6   mock,
7   pytestCheckHook,
8   requests,
9   pythonOlder,
10   websocket-client,
13 buildPythonPackage rec {
14   pname = "waterfurnace";
15   version = "1.1.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "sdague";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     sha256 = "1ba247fw1fvi7zy31zj2wbjq7fajrbxhp139cl9jj67rfvxfv8xf";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace "'pytest-runner'," ""
30   '';
32   propagatedBuildInputs = [
33     click
34     requests
35     websocket-client
36   ];
38   nativeCheckInputs = [
39     mock
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "waterfurnace" ];
45   meta = with lib; {
46     description = "Python interface to waterfurnace geothermal systems";
47     mainProgram = "waterfurnace-debug";
48     homepage = "https://github.com/sdague/waterfurnace";
49     changelog = "https://github.com/sdague/waterfurnace/blob/v${version}/HISTORY.rst";
50     license = with licenses; [ asl20 ];
51     maintainers = with maintainers; [ fab ];
52   };