nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 multiprocess,
6 pandas-stubs,
7 pandas,
8 poetry-core,
9 pydantic,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "pandantic";
15 version = "1.0.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "wesselhuising";
20 repo = "pandantic";
21 tag = version;
22 hash = "sha256-lqd4aQiBMbATFMdftKQeTlqQ3MGrxm2shb7qil+84iA=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 multiprocess
29 pandas
30 pandas-stubs
31 pydantic
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "pandantic" ];
37
38 meta = {
39 description = "Module to enriche the Pydantic BaseModel class";
40 homepage = "https://github.com/wesselhuising/pandantic";
41 changelog = "https://github.com/wesselhuising/pandantic/releases/tag/${src.tag}";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ fab ];
44 };
45}