diff --git a/pkgs/development/python-modules/should-dsl/default.nix b/pkgs/development/python-modules/should-dsl/default.nix index fa1266668078..97ae7466caa0 100644 --- a/pkgs/development/python-modules/should-dsl/default.nix +++ b/pkgs/development/python-modules/should-dsl/default.nix @@ -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 ]; }; -} +})