journalwatch: use fetchFromGitHub for normalization

See #32997
This commit is contained in:
Florian Jacob 2019-04-13 20:55:49 +02:00
parent 7b3ac169ff
commit 68c6f3f27e

View File

@ -1,15 +1,15 @@
{ stdenv, buildPythonPackage, fetchurl, pythonOlder, systemd, pytest }: { stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, systemd, pytest }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "journalwatch"; pname = "journalwatch";
name = "${pname}-${version}";
version = "1.1.0"; version = "1.1.0";
disabled = pythonOlder "3.3"; disabled = pythonOlder "3.3";
src = fetchFromGitHub {
src = fetchurl { owner = "The-Compiler";
url = "https://github.com/The-Compiler/${pname}/archive/v${version}.tar.gz"; repo = pname;
sha512 = "3hvbgx95hjfivz9iv0hbhj720wvm32z86vj4a60lji2zdfpbqgr2b428lvg2cpvf71l2xn6ca5v0hzyz57qylgwqzgfrx7hqhl5g38s"; rev = "v${version}";
sha512 = "11g2f1w9lfqw6zxxyg7qrqpb914s6w71j0gnpw7qr7cak2l5jlf2l39dlg30y55rw7jgmf0yg77wwzd0c430mq1n6q1v8w86g1rwkzb";
}; };
# can be removed post 1.1.0 # can be removed post 1.1.0