ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / raincloudy / default.nix
blobc0fb2accc53a025bec0cb2d3d8a809417d18960b
1 { lib
2 , beautifulsoup4
3 , buildPythonPackage
4 , fetchFromGitHub
5 , html5lib
6 , pytestCheckHook
7 , pythonOlder
8 , requests
9 , requests-mock
10 , urllib3
13 buildPythonPackage rec {
14   pname = "raincloudy";
15   version = "1.2.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "vanstinator";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-qCkBVirM09iA1sXiOB9FJns8bHjQq7rRk8XbRWrtBDI=";
25   };
27   propagatedBuildInputs = [
28     requests
29     beautifulsoup4
30     urllib3
31     html5lib
32   ];
34   checkInputs = [
35     pytestCheckHook
36     requests-mock
37   ];
39   postPatch = ''
40     # https://github.com/vanstinator/raincloudy/pull/60
41     substituteInPlace setup.py \
42       --replace "bs4" "beautifulsoup4" \
43       --replace "html5lib==1.0.1" "html5lib"
44   '';
46   pythonImportsCheck = [
47     "raincloudy"
48   ];
50   disabledTests = [
51     # Test requires network access
52     "test_attributes"
53   ];
55   meta = with lib; {
56     description = "Module to interact with Melnor RainCloud Smart Garden Watering Irrigation Timer";
57     homepage = "https://github.com/vanstinator/raincloudy";
58     license = with licenses; [ asl20 ];
59     maintainers = with maintainers; [ fab ];
60   };