aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-gammu/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/python-gammu/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/python-gammu/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-gammu/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-gammu/default.nix
new file mode 100644
index 000000000000..1548a1389474
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-gammu/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+ #, pytestCheckHook
+, pythonOlder
+, pkg-config
+, gammu
+}:
+
+buildPythonPackage rec {
+ pname = "python-gammu";
+ version = "3.1";
+ disabled = pythonOlder "3.5";
+
+ src = fetchFromGitHub {
+ owner = "gammu";
+ repo = pname;
+ rev = version;
+ sha256 = "1hw2mfrps6wqfyi40p5mp9r59n1ick6pj4hw5njz0k822pbb33p0";
+ };
+
+ nativeBuildInputs = [ pkg-config ];
+
+ buildInputs = [ gammu ];
+
+ # Check with the next release if tests could be run with pytest
+ # checkInputs = [ pytestCheckHook ];
+ # Don't run tests for now
+ doCheck = false;
+ pythonImportsCheck = [ "gammu" ];
+
+ meta = with lib; {
+ description = "Python bindings for Gammu";
+ homepage = "https://github.com/gammu/python-gammu/";
+ license = with licenses; [ gpl2Plus ];
+ maintainers = with maintainers; [ fab ];
+ };
+}