1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "import-expression"; 12 version = "2.2.1.post1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchPypi { 18 pname = "import_expression"; 19 inherit version; 20 hash = "sha256-HIMb8mvvft82qXs0xoe5Yuer4GEWxm8A4U+aMhhiPU8="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 enabledTestPaths = [ "tests.py" ]; 28 29 pythonImportsCheck = [ "import_expression" ]; 30 31 meta = { 32 description = "Transpiles a superset of python to allow easy inline imports"; 33 homepage = "https://github.com/ioistired/import-expression-parser"; 34 changelog = "https://github.com/ioistired/import-expression/releases/tag/v${version}"; 35 license = with lib.licenses; [ 36 mit 37 psfl 38 ]; 39 maintainers = with lib.maintainers; [ ]; 40 mainProgram = "import-expression"; 41 }; 42}