diff --git a/pkgs/development/python-modules/usort/default.nix b/pkgs/development/python-modules/usort/default.nix index 3c522d4f7f8f..2420884befc2 100644 --- a/pkgs/development/python-modules/usort/default.nix +++ b/pkgs/development/python-modules/usort/default.nix @@ -8,7 +8,6 @@ hatchling, libcst, moreorless, - pythonOlder, stdlibs, toml, trailrunner, @@ -18,24 +17,22 @@ buildPythonPackage rec { pname = "usort"; - version = "1.0.8"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + version = "1.1.0"; + pyproject = true; src = fetchFromGitHub { owner = "facebook"; repo = "usort"; tag = "v${version}"; - hash = "sha256-iezq2K+Rw0djyOoFm7tguw/vkkDSyrPZIfZPmaZvFpM="; + hash = "sha256-QnhpnuEt6j/QPmX29A0523QDh4o2QfaCoDI0YJpTc8Y="; }; - nativeBuildInputs = [ + build-system = [ hatch-vcs hatchling ]; - propagatedBuildInputs = [ + dependencies = [ attrs click libcst @@ -54,10 +51,10 @@ buildPythonPackage rec { meta = with lib; { description = "Safe, minimal import sorting for Python projects"; - mainProgram = "usort"; homepage = "https://github.com/facebook/usort"; - changelog = "https://github.com/facebook/usort/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/facebook/usort/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; + mainProgram = "usort"; }; }