Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, mbstrdecoder 5, typepy 6, pytestCheckHook 7, termcolor 8}: 9 10buildPythonPackage rec { 11 pname = "dataproperty"; 12 version = "0.55.0"; 13 14 src = fetchFromGitHub { 15 owner = "thombashi"; 16 repo = pname; 17 rev = "v${version}"; 18 hash = "sha256-ODSrKZ8M/ni9r2gkVIKWaKkdr+3AVi4INkEKJ+cmb44="; 19 }; 20 21 propagatedBuildInputs = [ mbstrdecoder typepy ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 checkInputs = [ termcolor ]; 25 26 # Tests fail, even on non-nixos 27 pytestFlagsArray = [ 28 "--deselect test/test_dataproperty.py::Test_DataPeroperty_len::test_normal_ascii_escape_sequence" 29 "--deselect test/test_dataproperty.py::Test_DataPeroperty_is_include_ansi_escape::test_normal" 30 "--deselect test/test_dataproperty.py::Test_DataPeroperty_repr::test_normal" 31 ]; 32 33 meta = with lib; { 34 homepage = "https://github.com/thombashi/dataproperty"; 35 description = "A library for extracting properties from data"; 36 maintainers = with maintainers; [ genericnerdyusername ]; 37 license = licenses.mit; 38 }; 39}