From 5d7ef923cb10e02121b84f8ee98ad891d7f35630 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 10 Apr 2020 22:58:46 +0300 Subject: [PATCH] python.pkgs.sane: init at 2.8.2 --- .../python-modules/sane/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/sane/default.nix diff --git a/pkgs/development/python-modules/sane/default.nix b/pkgs/development/python-modules/sane/default.nix new file mode 100644 index 000000000000..2359ff0aa7fe --- /dev/null +++ b/pkgs/development/python-modules/sane/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildPythonPackage +, fetchPypi +, saneBackends +}: + +buildPythonPackage rec { + pname = "sane"; + version = "2.8.2"; + + src = fetchPypi { + inherit version; + pname = "python-sane"; + sha256 = "0sri01h9sld6w7vgfhwp29n5w19g6idz01ba2giwnkd99k1y2iqg"; + }; + + buildInputs = [ + saneBackends + ]; + + meta = with lib; { + homepage = "https://github.com/python-pillow/Sane"; + description = "Python interface to the SANE scanner and frame grabber "; + license = licenses.mit; + maintainers = with maintainers; [ doronbehar ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 162f837fd28c..82a57b0192c4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6452,6 +6452,10 @@ in { salmon-mail = callPackage ../development/python-modules/salmon-mail { }; + sane = callPackage ../development/python-modules/sane { + inherit (pkgs) saneBackends; + }; + sampledata = callPackage ../development/python-modules/sampledata { }; samplerate = callPackage ../development/python-modules/samplerate { };