From c881dd5e68731d3adb32e72614fa65082f59c743 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Thu, 26 Sep 2019 15:56:32 +0900 Subject: [PATCH] pythonPackages.pagelabels: init at 1.2.0 Used in termpdf I want to package. --- .../python-modules/pagelabels/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/pagelabels/default.nix diff --git a/pkgs/development/python-modules/pagelabels/default.nix b/pkgs/development/python-modules/pagelabels/default.nix new file mode 100644 index 0000000000000..d7adc9b17c043 --- /dev/null +++ b/pkgs/development/python-modules/pagelabels/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchPypi, pdfrw }: + +buildPythonPackage rec { + pname = "pagelabels"; + version = "1.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "07as5kzyvj66bfgvx8bph8gkyj6cgm4lhgxwb78bpdl4m8y8kpma"; + }; + + buildInputs = [ pdfrw ]; + + # upstream doesn't contain tests + doCheck = false; + + meta = with stdenv.lib; { + description = "Python library to manipulate PDF page labels."; + homepage = "https://github.com/lovasoa/pagelabels-py"; + maintainers = with maintainers; [ teto ]; + license = licenses.gpl3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6f05a46a99c76..81e75d808ff1f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4825,6 +4825,8 @@ in { paho-mqtt = callPackage ../development/python-modules/paho-mqtt { }; + pagelabels = callPackage ../development/python-modules/pagelabels { }; + pamqp = callPackage ../development/python-modules/pamqp { }; parsedatetime = callPackage ../development/python-modules/parsedatetime { };