mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
31 lines
1.1 KiB
Nix
31 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "polygon3";
|
|
version = "3.0.9";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jraedler";
|
|
repo = "Polygon3";
|
|
rev = "7b2091f77741fa1d94251979bc4a4f2676b4d2d1";
|
|
hash = "sha256-jXtjEzjWwMoVgrHWsK8brSN6TQRxIPRjUaRiLBXYLcI=";
|
|
};
|
|
|
|
# malloc error on running the tests
|
|
# python3.10(30620,0x115b74600) malloc: *** error for object 0x10d6db580: pointer being freed was not allocated
|
|
# > python3.10(30620,0x115b74600) malloc: *** set a breakpoint in malloc_error_break to debug
|
|
# > /nix/store/vbi8rnz0k3jyh4h4g16bbkchdd8mnxw7-setuptools-check-hook/nix-support/setup-hook: line 4: 30620 Abort trap: 6 /nix/store/5cxanhipcbfxnrqgw2qsr3zqr4z711bj-python3-3.10.12/bin/python3.10 nix_run_setup test
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Polygon is a python package that handles polygonal shapes in 2D";
|
|
homepage = "https://github.com/jraedler/Polygon3";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ happysalada ];
|
|
};
|
|
}
|