depot/third_party/nixpkgs/pkgs/development/python-modules/import-expression/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 lines
911 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
pytestCheckHook,
astunparse,
setuptools,
}:
buildPythonPackage rec {
pname = "import-expression";
version = "2.0.0";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "import_expression";
hash = "sha256-Biw7dIOPKbDcqYJSCyeqC/seREcVihSZuaKNFfgjTew=";
};
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 ];
};
}