mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
fdb8ff0034
Diff: https://github.com/konradhalas/dacite/compare/refs/tags/v1.8.0...v1.8.1 Changelog: https://github.com/konradhalas/dacite/blob/v1.8.1/CHANGELOG.md
47 lines
989 B
Nix
47 lines
989 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dacite";
|
|
version = "1.8.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "konradhalas";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-lvObQ+jyBH2s4GOwyDXEAYmG7ZGQN9WDqL8ftNItPCQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "--benchmark-autosave --benchmark-json=benchmark.json" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dacite"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"tests/performance"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python helper to create data classes from dictionaries";
|
|
homepage = "https://github.com/konradhalas/dacite";
|
|
changelog = "https://github.com/konradhalas/dacite/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|