-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265256 from natsukium/line-profiler
python311Packages.line-profiler: 4.0.2 -> 4.1.2; rename from line_profiler
- Loading branch information
Showing
5 changed files
with
137 additions
and
12 deletions.
There are no files selected for viewing
24 changes: 13 additions & 11 deletions
24
.../python-modules/line_profiler/default.nix → .../python-modules/line-profiler/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ lib | ||
, stdenv | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, pythonOlder | ||
, setuptools | ||
, wheel | ||
, numpy | ||
, python-dateutil | ||
, xxhash | ||
, pytestCheckHook | ||
, requests | ||
, xdoctest | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "ubelt"; | ||
version = "1.3.4"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.6"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Erotemic"; | ||
repo = "ubelt"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-pvCmmdPRLupMUCiOvfa+JTX8NPFZ/UcXSPEaaDG3eTk="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
passthru.optional-dependencies = { | ||
optional = [ | ||
numpy | ||
python-dateutil | ||
xxhash | ||
]; | ||
}; | ||
|
||
nativeCheckInputs = [ | ||
pytestCheckHook | ||
requests | ||
xdoctest | ||
]; | ||
|
||
preCheck = '' | ||
export HOME=$TMPDIR | ||
''; | ||
|
||
disabledTests = lib.optionals stdenv.isDarwin [ | ||
# fail due to sandbox environment | ||
"CacheStamp.expired" | ||
"userhome" | ||
]; | ||
|
||
pythonImportsCheck = [ "ubelt" ]; | ||
|
||
__darwinAllowLocalNetworking = true; | ||
|
||
meta = with lib; { | ||
description = "A Python utility library with a stdlib like feel and extra batteries. Paths, Progress, Dicts, Downloads, Caching, Hashing: ubelt makes it easy"; | ||
homepage = "https://github.com/Erotemic/ubelt"; | ||
changelog = "https://github.com/Erotemic/ubelt/blob/${src.rev}/CHANGELOG.md"; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ natsukium ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, pythonOlder | ||
, setuptools | ||
, wheel | ||
, pytestCheckHook | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "xdoctest"; | ||
version = "1.1.2"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.6"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Erotemic"; | ||
repo = "xdoctest"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-yTu5ldr9TkpYRP8hjgUPpexBVLjaK2gfPvISjMJLY74="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
pytestCheckHook | ||
]; | ||
|
||
preCheck = '' | ||
export HOME=$TMPDIR | ||
export PATH=$out/bin:$PATH | ||
''; | ||
|
||
pythonImportsCheck = [ "xdoctest" ]; | ||
|
||
meta = with lib; { | ||
description = "A rewrite of Python's builtin doctest module (with pytest plugin integration) with AST instead of REGEX"; | ||
homepage = "https://github.com/Erotemic/xdoctest"; | ||
changelog = "https://github.com/Erotemic/xdoctest/blob/${src.rev}/CHANGELOG.md"; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ natsukium ]; | ||
mainProgram = "xdoctest"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters