odpdown: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler
2021-10-24 15:11:40 +02:00
parent 4b951f0a6f
commit 4ff280efd7
+6 -4
View File
@@ -1,13 +1,15 @@
{ lib, fetchurl, pythonPackages, libreoffice }:
{ lib, fetchFromGitHub, pythonPackages, libreoffice }:
pythonPackages.buildPythonApplication rec {
pname = "odpdown";
version = "0.4.1";
src = fetchurl {
url = "https://github.com/thorstenb/odpdown/archive/v${version}.tar.gz";
sha256 = "005eecc73c65b9d4c09532547940718a7b308cd565f62a213dfa040827d4d565";
src = fetchFromGitHub {
owner = "thorstenb";
repo = "odpdown";
rev = "v${version}";
sha256 = "r2qbgD9PAalbypt+vjp2YcYggUGPQMEG2FDxMtohqG4=";
};
propagatedBuildInputs = with pythonPackages; [ libreoffice lpod lxml mistune pillow pygments ];