mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
python3Packages.import-expression: init at 1.1.4
This commit is contained in:
parent
a18b9054c3
commit
8c85a55340
@ -0,0 +1,45 @@
|
||||
{ lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
pytestCheckHook,
|
||||
astunparse,
|
||||
setuptools
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "import-expression";
|
||||
version = "1.1.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ioistired";
|
||||
repo = "import-expression-parser";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-mll2NePB7fthzltLOk6D9BgaDpH6GaW4psqcGun/0qM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ioistired/import-expression-parser/commit/3daf968c3163b64685aa529740e132f0df5ab262.patch";
|
||||
hash = "sha256-2Ubv3onor2D26udZbDDMb3iNLopEIRnIcO/X6WUVmJU=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
propagatedBuildInputs = [ 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 ];
|
||||
};
|
||||
}
|
@ -5526,6 +5526,8 @@ self: super: with self; {
|
||||
|
||||
impacket = callPackage ../development/python-modules/impacket { };
|
||||
|
||||
import-expression = callPackage ../development/python-modules/import-expression { };
|
||||
|
||||
importlab = callPackage ../development/python-modules/importlab { };
|
||||
|
||||
importlib-metadata = callPackage ../development/python-modules/importlib-metadata { };
|
||||
|
Loading…
Reference in New Issue
Block a user