mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-15 03:06:33 +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
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
sqlalchemy,
|
|
setuptools-scm,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
pytest-sugar,
|
|
pymysql,
|
|
psycopg2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sqlalchemy-jsonfield";
|
|
version = "1.0.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "penguinolog";
|
|
repo = "sqlalchemy_jsonfield";
|
|
tag = version;
|
|
hash = "sha256-4zLXB3UQh6pgQ80KrxkLeC5yiv1R8t2+JmSukmGXr7I=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
sqlalchemy
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-sugar
|
|
pymysql
|
|
psycopg2
|
|
];
|
|
|
|
pythonImportsCheck = [ "sqlalchemy_jsonfield" ];
|
|
|
|
meta = {
|
|
description = "SQLALchemy JSONField implementation for storing dicts at SQL independently from JSON type support";
|
|
homepage = "https://github.com/penguinolog/sqlalchemy_jsonfield";
|
|
changelog = "https://github.com/penguinolog/sqlalchemy_jsonfield/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ ivan-tkatchev ];
|
|
};
|
|
}
|