python3.pkgs.rtoml: init at 0.6.1 (#122400)

This commit is contained in:
evils 2021-05-10 22:06:17 +02:00 committed by GitHub
parent ca4001870b
commit 18ed189365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools-rust
, rustPlatform
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rtoml";
version = "0.6.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = pname;
rev = "v${version}";
sha256 = "07bf30if1wmbqjp5n4ib43n6frx8ybyxc9fndxncq7aylkrhd7hy";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "1q082sdac5vm4l3b45rfjp4vppp9y9qhagdjqqfdz8gdhm1k8yyy";
};
nativeBuildInputs = with rustPlatform; [
setuptools-rust
rust.rustc
rust.cargo
cargoSetupHook
];
pythonImportsCheck = [ "rtoml" ];
checkInputs = [ pytestCheckHook ];
preCheck = ''
cd tests
'';
meta = with lib; {
description = "Rust based TOML library for python";
homepage = "https://github.com/samuelcolvin/rtoml";
license = licenses.mit;
maintainers = with maintainers; [ evils ];
};
}

View file

@ -7216,6 +7216,8 @@ in {
rtmidi-python = callPackage ../development/python-modules/rtmidi-python { };
rtoml = callPackage ../development/python-modules/rtoml { };
Rtree = callPackage ../development/python-modules/Rtree {
inherit (pkgs) libspatialindex;
};