nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 865 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # dependencies 11 pytz, 12 13 # tests 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "pyrfc3339"; 19 version = "2.1.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "kurtraschke"; 24 repo = "pyRFC3339"; 25 tag = "v${version}"; 26 hash = "sha256-pNtv60ecJ7kceS+dDMuKVCQGARf0SbNVBLqqTIzHDj0="; 27 }; 28 29 build-system = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 dependencies = [ pytz ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "pyrfc3339" 42 ]; 43 44 meta = { 45 changelog = "https://github.com/kurtraschke/pyRFC3339/blob/${src.tag}/CHANGES.rst"; 46 description = "Generate and parse RFC 3339 timestamps"; 47 homepage = "https://github.com/kurtraschke/pyRFC3339"; 48 license = lib.licenses.mit; 49 }; 50}