mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-24 14:10:17 +02:00
Merge pull request #156632 from fabaff/fix-rtoml
python3Packages.rtoml: ignore DeprecationWarning
This commit is contained in:
commit
39dabe6264
|
@ -1,16 +1,17 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools-rust
|
||||
, rustPlatform
|
||||
, pytestCheckHook
|
||||
, libiconv
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, rustPlatform
|
||||
, setuptools-rust
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rtoml";
|
||||
version = "0.7";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
@ -33,17 +34,29 @@ buildPythonPackage rec {
|
|||
cargoSetupHook
|
||||
];
|
||||
|
||||
buildInputs = [ libiconv ];
|
||||
buildInputs = [
|
||||
libiconv
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "rtoml" ];
|
||||
pythonImportsCheck = [
|
||||
"rtoml"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
preCheck = ''
|
||||
cd tests
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W"
|
||||
"ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rust based TOML library for python";
|
||||
description = "Rust based TOML library for Python";
|
||||
homepage = "https://github.com/samuelcolvin/rtoml";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ evils ];
|
||||
|
|
Loading…
Reference in a new issue