at master 1.5 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 docopt, 6 pytz, 7 requests, 8 setuptools, 9 vincenty, 10 xmltodict, 11 pytestCheckHook, 12 requests-mock, 13 syrupy, 14}: 15 16buildPythonPackage rec { 17 pname = "buienradar"; 18 version = "1.0.9"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "mjj4791"; 23 repo = "python-buienradar"; 24 tag = version; 25 hash = "sha256-DTdxzBe9fBOH5fHME++oq62xMtBKnjY7BCevwjl8VZ8="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 docopt 32 pytz 33 requests 34 setuptools 35 vincenty 36 xmltodict 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 requests-mock 42 syrupy 43 ]; 44 45 disabledTests = [ 46 # require network connection 47 "test_rain_data" 48 "test_json_data" 49 "test_xml_data" 50 # tests fail if run on a different day 51 "test_id_upper1" 52 "test_invalid_data" 53 "test_missing_data" 54 "test_readdata1_30" 55 "test_readdata1_60" 56 "test_readdata2_30" 57 "test_readdata2_60" 58 "test_readdata3" 59 ]; 60 61 pytestFlags = [ 62 "--snapshot-warn-unused" 63 ]; 64 65 pythonImportsCheck = [ 66 "buienradar.buienradar" 67 "buienradar.constants" 68 ]; 69 70 meta = with lib; { 71 changelog = "https://github.com/mjj4791/python-buienradar/blob/${src.tag}/CHANGLOG.rst"; 72 description = "Library and CLI tools for interacting with buienradar"; 73 mainProgram = "buienradar"; 74 homepage = "https://github.com/mjj4791/python-buienradar"; 75 license = licenses.mit; 76 maintainers = with maintainers; [ dotlambda ]; 77 }; 78}