f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
45 lines
876 B
Nix
45 lines
876 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
stevedore,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plux";
|
|
version = "1.10.0";
|
|
pyproject = true;
|
|
|
|
# Tests are not available from PyPi
|
|
src = fetchFromGitHub {
|
|
owner = "localstack";
|
|
repo = "plux";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-krlI7WimBluzkw3MVtGeotK5NFf+gsaUfL4CfhNPfpE=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
dependencies = [ stevedore ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
pythonImportsCheck = [ "plugin.core" ];
|
|
|
|
meta = with lib; {
|
|
description = "Dynamic code loading framework for building pluggable Python distributions";
|
|
homepage = "https://github.com/localstack/plux";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|