Skip to content

Commit

Permalink
pkgs/scanf: init at 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed Feb 22, 2024
1 parent e040bce commit 887e7e5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
31 changes: 31 additions & 0 deletions pkgs/epnix/tools/scanf/default.nix
Original file line number Diff line number Diff line change
@@ -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];
};
}

0 comments on commit 887e7e5

Please sign in to comment.