about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytoml
diff options
context:
space:
mode:
authorwisut hantanong <wizzup@gmail.com>2017-07-15 15:19:17 +0700
committerJörg Thalheim <joerg@thalheim.io>2017-07-15 17:40:55 +0100
commit9115f68bdea5b6202fd0b4b7ffc3bf2abcfee859 (patch)
tree4624e708443d4f0a0e02632c8c985d252ca4c376 /pkgs/development/python-modules/pytoml
parentb493824162bcf9cbe490e1fad74fca5ce30d28d0 (diff)
downloadnixlib-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.nix24
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 ];
+  };
+}