diff --git a/pkgs/development/python-modules/bsdiff4/default.nix b/pkgs/development/python-modules/bsdiff4/default.nix index e37b314f6b96..7800d69a3194 100644 --- a/pkgs/development/python-modules/bsdiff4/default.nix +++ b/pkgs/development/python-modules/bsdiff4/default.nix @@ -2,18 +2,23 @@ lib, buildPythonPackage, fetchPypi, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bsdiff4"; version = "1.2.6"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-KrV9AaeLOeKeWszJz+rUEwmC3tncy8QmG9DpxR1rdR0="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "bsdiff4" ]; checkPhase = '' @@ -24,8 +29,8 @@ buildPythonPackage rec { meta = { description = "Binary diff and patch using the BSDIFF4-format"; homepage = "https://github.com/ilanschnell/bsdiff4"; - changelog = "https://github.com/ilanschnell/bsdiff4/blob/${version}/CHANGELOG.txt"; + changelog = "https://github.com/ilanschnell/bsdiff4/blob/${finalAttrs.version}/CHANGELOG.txt"; license = lib.licenses.bsdProtection; maintainers = with lib.maintainers; [ ris ]; }; -} +})