Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 38 lines 808 B view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pythonOlder 5, pythonAtLeast 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "dacite"; 11 version = "1.7.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "konradhalas"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-+yWvlJcOmqDkHl3JZfPnIV3C4ieSo4FiBvoUZ0+J4N0="; 21 }; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ 28 "dacite" 29 ]; 30 31 meta = with lib; { 32 description = "Python helper to create data classes from dictionaries"; 33 homepage = "https://github.com/konradhalas/dacite"; 34 changelog = "https://github.com/konradhalas/dacite/blob/v${version}/CHANGELOG.md"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}