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