mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
python312Packages.dukpy: init at 0.4.0
This commit is contained in:
parent
e589ce6148
commit
bc2251120c
54
pkgs/development/python-modules/dukpy/default.nix
Normal file
54
pkgs/development/python-modules/dukpy/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
@ -3671,6 +3671,8 @@ self: super: with self; {
|
||||
|
||||
dugong = callPackage ../development/python-modules/dugong { };
|
||||
|
||||
dukpy = callPackage ../development/python-modules/dukpy { };
|
||||
|
||||
dulwich = callPackage ../development/python-modules/dulwich {
|
||||
inherit (pkgs) gnupg;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user