python.pkgs.pytoml: move to separate expression

This commit is contained in:
wisut hantanong 2017-07-15 15:19:17 +07:00 committed by Jörg Thalheim
parent b493824162
commit 9115f68bde
2 changed files with 25 additions and 20 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchgit
, python }:
buildPythonPackage rec {
pname = "pytoml";
version = "0.1.11";
name = "${pname}-${version}";
checkPhase = "${python.interpreter} test/test.py";
# fetchgit used to ensure test submodule is available
src = fetchgit {
url = "${meta.homepage}.git";
rev = "refs/tags/v${version}";
sha256 = "1jiw04zk9ccynr8kb1vqh9r1p2kh0al7g7b1f94911iazg7dgs9j";
};
meta = with stdenv.lib; {
description = "A TOML parser/writer for Python";
homepage = https://github.com/avakar/pytoml;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@ -29909,26 +29909,7 @@ EOF
}; };
}; };
pytoml = buildPythonPackage rec { pytoml = callPackage ../development/python-modules/pytoml { };
name = "pytoml-${version}";
version = "0.1.11";
checkPhase = "${python.interpreter} test/test.py";
# fetchgit used to ensure test submodule is available
src = pkgs.fetchgit {
url = "${meta.homepage}.git";
rev = "refs/tags/v${version}";
sha256 = "1jiw04zk9ccynr8kb1vqh9r1p2kh0al7g7b1f94911iazg7dgs9j";
};
meta = {
description = "A TOML parser/writer for Python";
homepage = https://github.com/avakar/pytoml;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
};
pypandoc = callPackage ../development/python-modules/pypandoc { }; pypandoc = callPackage ../development/python-modules/pypandoc { };