From d6c0afea706dfad30863b4f6b6e2ed3116752014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 4 Apr 2019 11:03:15 +0200 Subject: [PATCH] python.pkgs.pytoml: 0.1.14 -> 0.1.20 --- .../python-modules/pytoml/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pytoml/default.nix b/pkgs/development/python-modules/pytoml/default.nix index 91661a1fb51..d65de812323 100644 --- a/pkgs/development/python-modules/pytoml/default.nix +++ b/pkgs/development/python-modules/pytoml/default.nix @@ -1,23 +1,29 @@ { stdenv , buildPythonPackage -, fetchgit +, fetchFromGitHub , python +, pytest }: buildPythonPackage rec { pname = "pytoml"; - version = "0.1.14"; + version = "0.1.20"; + + src = fetchFromGitHub { + owner = "avakar"; + repo = "pytoml"; + rev = "v${version}"; + fetchSubmodules = true; # ensure test submodule is available + sha256 = "02hjq44zhh6z0fsbm3hvz34sav6fic90sjrw8g1pkdvskzzl46mz"; + }; + + checkInputs = [ pytest ]; checkPhase = '' ${python.interpreter} test/test.py + pytest test ''; - # fetchgit used to ensure test submodule is available - src = fetchgit { - url = "${meta.homepage}.git"; - rev = "refs/tags/v${version}"; - sha256 = "1ip71yqxnyi4jhw5x1q7a0za61ndhpfh0vbx08jfv0w4ayng6rgv"; - }; meta = with stdenv.lib; { description = "A TOML parser/writer for Python";