python3Packages.should-dsl: modernize

This commit is contained in:
Harinn
2026-07-02 14:08:28 +07:00
parent 41c74a55b9
commit da2a4097c9

View File

@@ -5,15 +5,17 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "should-dsl";
version = "2.1.2";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit version;
inherit (finalAttrs) version;
pname = "should_dsl";
sha256 = "0ai30dxgygwzaj9sgdzyfr9p5b7gwc9piq59nzr4xy5x1zcm7xrn";
hash = "sha256-NvdT2Q+9+E7yt6ngeBPj76xyU3b+t6eTVJ8//3oDIyo=";
};
build-system = [ setuptools ];
@@ -21,10 +23,12 @@ buildPythonPackage rec {
# There are no tests
doCheck = false;
pythonImportsCheck = [ "should_dsl" ];
meta = {
description = "Should assertions in Python as clear and readable as possible";
homepage = "https://github.com/nsi-iff/should-dsl";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jluttine ];
};
}
})