Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 729 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "autoslot"; 12 version = "2024.12.1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "cjrh"; 19 repo = "autoslot"; 20 tag = "v${version}"; 21 hash = "sha256-wYjsBrjvSZFHDt0HLrnS9Xwk8EHVQupfPSkQnUFmMAk="; 22 }; 23 24 build-system = [ flit-core ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "autoslot" ]; 29 30 meta = with lib; { 31 description = "Automatic __slots__ for your Python classes"; 32 homepage = "https://github.com/cjrh/autoslot"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}