mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +00:00
python3Packages.youseedee: 0.4.1 -> 0.5.3
This commit is contained in:
parent
36423ab759
commit
c14eeb47eb
@ -1,25 +1,16 @@
|
||||
From 9013d36cfe7b2958eb18ce373f49193b66a0bbf6 Mon Sep 17 00:00:00 2001
|
||||
From: Dan Callaghan <djc@djc.id.au>
|
||||
Date: Sun, 23 Apr 2023 16:14:55 +1000
|
||||
Subject: [PATCH] use packaged unicode data
|
||||
|
||||
|
||||
diff --git a/lib/youseedee/__init__.py b/lib/youseedee/__init__.py
|
||||
index 4424ef1..9a72f52 100644
|
||||
index d2aeab3..c706277 100644
|
||||
--- a/lib/youseedee/__init__.py
|
||||
+++ b/lib/youseedee/__init__.py
|
||||
@@ -11,10 +11,7 @@
|
||||
UCD_URL = "https://unicode.org/Public/UCD/latest/ucd/UCD.zip"
|
||||
@@ -29,10 +29,7 @@ UCD_URL = "https://unicode.org/Public/UCD/latest/ucd/UCD.zip"
|
||||
|
||||
|
||||
def ucd_dir():
|
||||
- ucddir = os.path.expanduser("~/.youseedee")
|
||||
- if not os.path.isdir(ucddir):
|
||||
- os.mkdir(ucddir)
|
||||
- return ucddir
|
||||
+ return "@ucd_dir@"
|
||||
- ucddir = os.path.expanduser("~/.youseedee")
|
||||
- if not os.path.isdir(ucddir):
|
||||
- os.mkdir(ucddir)
|
||||
- return ucddir
|
||||
+ return "@ucd_dir@"
|
||||
|
||||
|
||||
def ensure_files():
|
||||
if os.path.isfile(os.path.join(ucd_dir(), "UnicodeData.txt")):
|
||||
--
|
||||
2.38.4
|
||||
|
||||
|
@ -2,18 +2,19 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, substituteAll
|
||||
, filelock
|
||||
, requests
|
||||
, unicode-character-database
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "youseedee";
|
||||
version = "0.4.1";
|
||||
version = "0.5.3";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-fdI4CBUSMbdKW0qg4y22wjWI6bhotgDkQdFMc9X00as=";
|
||||
hash = "sha256-hQkI8kdropLiO86LXDy6eQma3FEg48gLldU7bFg9dzI=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@ -26,6 +27,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
filelock
|
||||
requests
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user