mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 18:24:53 +00:00
python3Packages.dateparser: use writableTmpDirAsHomeHook
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
parsel,
|
||||
requests,
|
||||
ruamel-yaml,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
@@ -61,13 +62,10 @@ buildPythonPackage (finalAttrs: {
|
||||
parsel
|
||||
requests
|
||||
ruamel-yaml
|
||||
writableTmpDirAsHomeHook
|
||||
]
|
||||
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
||||
|
||||
preCheck = ''
|
||||
export HOME="$TEMPDIR"
|
||||
'';
|
||||
|
||||
# Upstream only runs the tests in tests/ in CI, others use git clone
|
||||
enabledTestPaths = [ "tests" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user