f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
mutf8,
|
|
webassets,
|
|
pytestCheckHook,
|
|
pytest-cov,
|
|
mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dukpy";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "amol-";
|
|
repo = "dukpy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8RDMz9SfBoUe7LQ9/atsZlJ/2uwLUb0hZxeYdsUOGpU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ mutf8 ];
|
|
|
|
optional-dependencies = {
|
|
webassets = [ webassets ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
mock
|
|
] ++ optional-dependencies.webassets;
|
|
|
|
disabledTests = [ "test_installer" ];
|
|
|
|
preCheck = ''
|
|
rm -r dukpy
|
|
'';
|
|
|
|
pythonImportsCheck = [ "dukpy" ];
|
|
|
|
meta = {
|
|
description = "Simple JavaScript interpreter for Python";
|
|
homepage = "https://github.com/amol-/dukpy";
|
|
changelog = "https://github.com/amol-/dukpy/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ruby0b ];
|
|
mainProgram = "dukpy";
|
|
};
|
|
}
|