From 887e7e54d2ed70c64a8093e78b4730e8652477b4 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 22 Feb 2024 09:26:07 +0100 Subject: [PATCH] pkgs/scanf: init at 1.5.2 --- pkgs/default.nix | 4 ++++ pkgs/epnix/tools/scanf/default.nix | 31 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/epnix/tools/scanf/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 54a8b087..7cd77f1b 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -9,6 +9,10 @@ in mkEpicsPackage = callPackage ./build-support/mk-epics-package.nix {}; + python3Packages = prev.python3Packages.overrideScope (final: prev: { + scanf = final.callPackage ./epnix/tools/scanf {}; + }); + epnix = recurseExtensible (self: { # EPICS base diff --git a/pkgs/epnix/tools/scanf/default.nix b/pkgs/epnix/tools/scanf/default.nix new file mode 100644 index 00000000..959b33a3 --- /dev/null +++ b/pkgs/epnix/tools/scanf/default.nix @@ -0,0 +1,31 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, +}: +buildPythonPackage rec { + pname = "scanf"; + version = "1.5.2"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-V2M0QKAqE4zRS2k9CScK8KA7sBfo1M/SSMeYizG4y4E="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + pythonImportsCheck = ["scanf"]; + + meta = with lib; { + description = "A small scanf implementation"; + homepage = "https://pypi.org/project/scanf/"; + license = licenses.mit; + maintainers = with maintainers; [minijackson]; + }; +}