python.pkgs.pytoml: 0.1.14 -> 0.1.20
This commit is contained in:
parent
4a61c6975f
commit
d6c0afea70
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user