From 2de9ffca9d15cbf6b3ab819c8b2d0e7d4cfc8caf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 11 Oct 2024 17:57:01 +0200 Subject: [PATCH] python312Packages.asn1tools: refactor --- pkgs/development/python-modules/asn1tools/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/asn1tools/default.nix b/pkgs/development/python-modules/asn1tools/default.nix index 17cf07402684..8ca21fece147 100644 --- a/pkgs/development/python-modules/asn1tools/default.nix +++ b/pkgs/development/python-modules/asn1tools/default.nix @@ -26,14 +26,14 @@ buildPythonPackage rec { hash = "sha256-86bdBYlAVJfd3EY8s0t6ZDRA/qZVWuHD4Jxa1n1Ke5E="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ bitstruct pyparsing ]; - passthru.optional-depdendencies = { + optional-dependencies = { shell = [ prompt-toolkit ]; cache = [ diskcache ]; }; @@ -41,7 +41,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-xdist pytestCheckHook - ] ++ lib.flatten (builtins.attrValues passthru.optional-depdendencies); + ] ++ lib.flatten (builtins.attrValues optional-dependencies); pythonImportsCheck = [ "asn1tools" ]; @@ -53,10 +53,10 @@ buildPythonPackage rec { meta = with lib; { description = "ASN.1 parsing, encoding and decoding"; - mainProgram = "asn1tools"; homepage = "https://github.com/eerimoq/asn1tools"; changelog = "https://github.com/eerimoq/asn1tools/releases/tag/${version}"; license = licenses.mit; maintainers = [ ]; + mainProgram = "asn1tools"; }; }