2017-12-31 09:52:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchgit
|
|
|
|
, python
|
|
|
|
}:
|
2017-07-15 09:19:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytoml";
|
2017-12-31 09:52:37 +00:00
|
|
|
version = "0.1.14";
|
2017-07-15 09:19:17 +01:00
|
|
|
|
2017-12-31 09:52:37 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test/test.py
|
|
|
|
'';
|
2017-07-15 09:19:17 +01:00
|
|
|
|
|
|
|
# fetchgit used to ensure test submodule is available
|
|
|
|
src = fetchgit {
|
|
|
|
url = "${meta.homepage}.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
2017-12-31 09:52:37 +00:00
|
|
|
sha256 = "1ip71yqxnyi4jhw5x1q7a0za61ndhpfh0vbx08jfv0w4ayng6rgv";
|
2017-07-15 09:19:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A TOML parser/writer for Python";
|
|
|
|
homepage = https://github.com/avakar/pytoml;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|