mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 10:46:31 +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
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simplejson";
|
|
version = "3.20.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simplejson";
|
|
repo = "simplejson";
|
|
tag = "v${version}";
|
|
hash = "sha256-err3NWljoC6MxJoFSYuqLHGKfDcst6ya7myP9XIRbFc=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "simplejson" ];
|
|
|
|
meta = {
|
|
description = "Extensible JSON encoder/decoder for Python";
|
|
longDescription = ''
|
|
simplejson covers the full JSON specification for both encoding
|
|
and decoding, with unicode support. By default, encoding is done
|
|
in an encoding neutral fashion (plain ASCII with \uXXXX escapes
|
|
for unicode characters).
|
|
'';
|
|
homepage = "https://github.com/simplejson/simplejson";
|
|
changelog = "https://github.com/simplejson/simplejson/blob/v${version}/CHANGES.txt";
|
|
license = with lib.licenses; [
|
|
mit
|
|
afl21
|
|
];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|