summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytoml/default.nix
blob: 91661a1fb5101ea259424a2ac5a94cde7c2b7c5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv
, buildPythonPackage
, fetchgit
, python
}:

buildPythonPackage rec {
  pname = "pytoml";
  version = "0.1.14";

  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 = "1ip71yqxnyi4jhw5x1q7a0za61ndhpfh0vbx08jfv0w4ayng6rgv";
  };

  meta = with stdenv.lib; {
    description = "A TOML parser/writer for Python";
    homepage    = https://github.com/avakar/pytoml;
    license     = licenses.mit;
    maintainers = with maintainers; [ peterhoeg ];
  };
}