diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-07-26 09:01:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 09:01:10 +0200 |
commit | f5c80b0c0f432a87245c1d3375de2d1300bd11c0 (patch) | |
tree | d9c4861d243676906915fa06ecb70efb537126f3 /pkgs/development/python-modules/dominate | |
parent | 0d7a058a1c0931de7218d3d145b0256a22be4936 (diff) |
python310Packages.dominate: switch to pytestCheckHook
- add pythonImportsCheck - specify license - update description
Diffstat (limited to 'pkgs/development/python-modules/dominate')
-rw-r--r-- | pkgs/development/python-modules/dominate/default.nix | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/dominate/default.nix b/pkgs/development/python-modules/dominate/default.nix index 61662c596fd4e..aa840dc9ff519 100644 --- a/pkgs/development/python-modules/dominate/default.nix +++ b/pkgs/development/python-modules/dominate/default.nix @@ -1,20 +1,34 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "dominate"; version = "2.7.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-UgEBNgiS6/nQVT9n0341n/kkA9ih4zgUAwUDCIoF2kk="; + hash = "sha256-UgEBNgiS6/nQVT9n0341n/kkA9ih4zgUAwUDCIoF2kk="; }; - doCheck = !isPy3k; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "dominate" + ]; meta = with lib; { + description = "Library for creating and manipulating HTML documents using an elegant DOM API"; homepage = "https://github.com/Knio/dominate/"; - description = "Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API"; - license = licenses.lgpl3; + license = licenses.lgpl3Plus; maintainers = with maintainers; [ ]; }; } |