Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "hijri-converter"; 10 version = "2.3.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-BptniSkeCDD0hgp53NNPs87qO5VRbtQBAgK5ZWuhq2E="; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ 25 "hijri_converter" 26 ]; 27 28 meta = with lib; { 29 description = "Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"; 30 homepage = "https://github.com/dralshehri/hijri-converter"; 31 changelog = "https://github.com/dralshehri/hijridate/blob/v${version}/CHANGELOG.md"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ hexa ]; 34 }; 35}