depot/third_party/nixpkgs/pkgs/development/python-modules/pytoml/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

34 lines
697 B
Nix

{ lib
, 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 ];
};
}