Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 39 lines 911 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 textx, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "strpdatetime"; 12 version = "0.3.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "RhetTbull"; 17 repo = "strpdatetime"; 18 rev = "v${version}"; 19 hash = "sha256-eb3KJCFRkEt9KEP1gMQYuP50qXqItrexJhKvtJDHl9o="; 20 }; 21 22 build-system = [ poetry-core ]; 23 24 dependencies = [ textx ]; 25 pythonRelaxDeps = [ "textx" ]; 26 27 patches = [ ./fix-locale.patch ]; 28 29 pythonImportsCheck = [ "strpdatetime" ]; 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 meta = { 33 description = "Parse strings into Python datetime objects"; 34 license = lib.licenses.psfl; 35 changelog = "https://github.com/RhetTbull/strpdatetime/blob/${src.rev}/CHANGELOG.md"; 36 homepage = "https://github.com/RhetTbull/strpdatetime"; 37 maintainers = with lib.maintainers; [ sigmanificient ]; 38 }; 39}