Loading pkgs/development/python-modules/autoslot/default.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchFromGitHub , flit-core , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "autoslot"; version = "2022.12.1"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "cjrh"; repo = "autoslot"; rev = "refs/tags/v${version}"; hash = "sha256-fG4rRwRubJt2aXChEsMybEKal6LscZI7GA2uwtK5Vtg="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace 'requires = ["flit"]' 'requires = ["flit_core"]' \ --replace 'build-backend = "flit.buildapi"' 'build-backend = "flit_core.buildapi"' ''; nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "autoslot" ]; meta = with lib; { description = "Automatic __slots__ for your Python classes"; homepage = "https://github.com/cjrh/autoslot"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -910,6 +910,8 @@ self: super: with self; { autopep8 = callPackage ../development/python-modules/autopep8 { }; autoslot = callPackage ../development/python-modules/autoslot { }; avahi = toPythonModule (pkgs.avahi.override { inherit python; withPython = true; Loading Loading
pkgs/development/python-modules/autoslot/default.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchFromGitHub , flit-core , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "autoslot"; version = "2022.12.1"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "cjrh"; repo = "autoslot"; rev = "refs/tags/v${version}"; hash = "sha256-fG4rRwRubJt2aXChEsMybEKal6LscZI7GA2uwtK5Vtg="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace 'requires = ["flit"]' 'requires = ["flit_core"]' \ --replace 'build-backend = "flit.buildapi"' 'build-backend = "flit_core.buildapi"' ''; nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "autoslot" ]; meta = with lib; { description = "Automatic __slots__ for your Python classes"; homepage = "https://github.com/cjrh/autoslot"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -910,6 +910,8 @@ self: super: with self; { autopep8 = callPackage ../development/python-modules/autopep8 { }; autoslot = callPackage ../development/python-modules/autoslot { }; avahi = toPythonModule (pkgs.avahi.override { inherit python; withPython = true; Loading