Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 49 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "frozendict"; version = "2.4.6"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "Marco-Sulla"; repo = "python-frozendict"; rev = "refs/tags/v${version}"; hash = "sha256-cdKI0wIr0w6seV12cigqyJL6PSkLVzwVxASUB8n7lFY="; };
# build C version if it exists preBuild = '' version_str=$(python -c 'import sys; print("_".join(map(str, sys.version_info[:2])))') if test -f src/frozendict/c_src/$version_str/frozendictobject.c; then export CIBUILDWHEEL=1 export FROZENDICT_PURE_PY=0 else export CIBUILDWHEEL=0 export FROZENDICT_PURE_PY=1 fi '';
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "frozendict" ];
meta = with lib; { description = "Module for immutable dictionary"; homepage = "https://github.com/Marco-Sulla/python-frozendict"; changelog = "https://github.com/Marco-Sulla/python-frozendict/releases/tag/v${version}"; license = licenses.lgpl3Only; maintainers = with maintainers; [ pbsds ]; };}