depot/third_party/nixpkgs/pkgs/development/python-modules/import-expression/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
911 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
pytestCheckHook,
astunparse,
setuptools,
}:
buildPythonPackage rec {
pname = "import-expression";
version = "1.1.5";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "import_expression";
hash = "sha256-mVlYj8/I3LFEoHJRds/vbCjH2x/C1oNiUCXmh1FtQME=";
};
build-system = [ setuptools ];
dependencies = [ astunparse ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [
"import_expression"
"import_expression._codec"
];
meta = {
description = "Transpiles a superset of python to allow easy inline imports";
homepage = "https://github.com/ioistired/import-expression-parser";
license = with lib.licenses; [
mit
psfl
];
mainProgram = "import-expression";
maintainers = with lib.maintainers; [ lychee ];
};
}