nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "autoslot";
11 version = "2025.11.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "cjrh";
16 repo = "autoslot";
17 tag = "v${version}";
18 hash = "sha256-mPGfBUSKkskiiokqo/TJWdDzuvcg/LDULx+Gx8LexV8=";
19 };
20
21 build-system = [ flit-core ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "autoslot" ];
26
27 meta = {
28 description = "Automatic __slots__ for your Python classes";
29 homepage = "https://github.com/cjrh/autoslot";
30 license = lib.licenses.asl20;
31 maintainers = with lib.maintainers; [ fab ];
32 };
33}