summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytoml/default.nix
blob: 64e6ed4c669a2f7c251bbc77d768dee394e3c6d7 (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
29
30
31
32
33
34
{ lib, stdenv
, buildPythonPackage
, fetchFromGitHub
, python
, pytest
}:

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

  src = fetchFromGitHub {
    owner = "avakar";
    repo = "pytoml";
    rev = "v${version}";
    fetchSubmodules = true; # ensure test submodule is available
    sha256 = "02hjq44zhh6z0fsbm3hvz34sav6fic90sjrw8g1pkdvskzzl46mz";
  };

  checkInputs = [ pytest ];

  checkPhase = ''
    ${python.interpreter} test/test.py
    pytest test
  '';


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