diff --git a/pkgs/development/python-modules/yargy/default.nix b/pkgs/development/python-modules/yargy/default.nix index 3617055f03ec..e1dd6454c44a 100644 --- a/pkgs/development/python-modules/yargy/default.nix +++ b/pkgs/development/python-modules/yargy/default.nix @@ -2,21 +2,26 @@ lib, buildPythonPackage, fetchPypi, + setuptools, pymorphy2, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "yargy"; version = "0.16.0"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-yRfu+zKkDCPEa2yojWiScHLdAKuU6Q/V3GqwpitZtZM="; }; - propagatedBuildInputs = [ pymorphy2 ]; + build-system = [ setuptools ]; + + dependencies = [ pymorphy2 ]; pythonImportsCheck = [ "yargy" ]; nativeCheckInputs = [ pytestCheckHook ]; enabledTestPaths = [ "tests" ]; @@ -27,4 +32,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ npatsakula ]; }; -} +})