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