1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 packaging,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "fastcore";
13 version = "1.5.38";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "fastai";
20 repo = "fastcore";
21 rev = "refs/tags/${version}";
22 hash = "sha256-6b2EufBAWxKMRUGfhKq2ihRN5GRUjCeM0d8cbh7ZD8A=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ packaging ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "fastcore" ];
33
34 meta = with lib; {
35 description = "Python module for Fast AI";
36 homepage = "https://github.com/fastai/fastcore";
37 changelog = "https://github.com/fastai/fastcore/blob/${version}/CHANGELOG.md";
38 license = with licenses; [ asl20 ];
39 maintainers = with maintainers; [ fab ];
40 };
41}