Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 55 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 substituteAll, 6 setuptools, 7 setuptools-scm, 8 filelock, 9 requests, 10 unicode-character-database, 11}: 12 13buildPythonPackage rec { 14 pname = "youseedee"; 15 version = "0.6.0"; 16 pyproject = true; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-9w6yr28zq0LgOvMp5fCFaHGOwK4wbbDo/g1jH4Uky0E="; 21 }; 22 23 patches = [ 24 # Load data files from the unicode-character-database package instead of 25 # downloading them from the internet. (nixpkgs-specific, not upstreamable) 26 (substituteAll { 27 src = ./0001-use-packaged-unicode-data.patch; 28 ucd_dir = "${unicode-character-database}/share/unicode"; 29 }) 30 ]; 31 32 build-system = [ 33 setuptools 34 setuptools-scm 35 ]; 36 37 dependencies = [ 38 filelock 39 requests 40 ]; 41 42 # Package has no unit tests, but we can check an example as per README.rst: 43 checkPhase = '' 44 runHook preCheck 45 python -m youseedee 0x078A | grep -qE "Block\s+Thaana" 46 runHook postCheck 47 ''; 48 49 meta = with lib; { 50 description = "Python library for querying the Unicode Character Database"; 51 homepage = "https://github.com/simoncozens/youseedee"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ danc86 ]; 54 }; 55}