1{ lib 2, atomicwrites 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "fpyutils"; 12 version = "3.0.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "frnmst"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-cmCD8uKPX/7Ak6jAqzCvDqR1FgH09GaLfLTZdBQB+bs="; 22 }; 23 24 propagatedBuildInputs = [ 25 atomicwrites 26 requests 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pytestFlagsArray = [ 34 "fpyutils/tests/*.py" 35 ]; 36 37 disabledTests = [ 38 # Don't run test which requires bash 39 "test_execute_command_live_output" 40 ]; 41 42 pythonImportsCheck = [ 43 "fpyutils" 44 ]; 45 46 meta = with lib; { 47 description = "Collection of useful non-standard Python functions"; 48 homepage = "https://github.com/frnmst/fpyutils"; 49 changelog = "https://blog.franco.net.eu.org/software/fpyutils-${version}/release.html"; 50 license = with licenses; [ gpl3Plus ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}