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]; + }; +}