diff options
author | wisut hantanong <wizzup@gmail.com> | 2017-07-15 15:19:17 +0700 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-07-15 17:40:55 +0100 |
commit | 9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859 (patch) | |
tree | 4624e708443d4f0a0e02632c8c985d252ca4c376 /pkgs/development/python-modules/pytoml | |
parent | b493824162bcf9cbe490e1fad74fca5ce30d28d0 (diff) | |
download | nixlib-9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859.tar nixlib-9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859.tar.gz nixlib-9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859.tar.bz2 nixlib-9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859.tar.lz nixlib-9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859.tar.xz nixlib-9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859.tar.zst nixlib-9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859.zip |
python.pkgs.pytoml: move to separate expression
Diffstat (limited to 'pkgs/development/python-modules/pytoml')
-rw-r--r-- | pkgs/development/python-modules/pytoml/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytoml/default.nix b/pkgs/development/python-modules/pytoml/default.nix new file mode 100644 index 000000000000..55479e76dafd --- /dev/null +++ b/pkgs/development/python-modules/pytoml/default.nix @@ -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 ]; + }; +} |