nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 numpy,
6 pytest,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-arraydiff";
12 version = "0.6.1";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-KTexRQ/JNWIPJHCdh9QMZ+BVoEPXuFQaJf36mU3aZ94=";
18 };
19
20 nativeBuildInputs = [ setuptools-scm ];
21
22 buildInputs = [ pytest ];
23
24 propagatedBuildInputs = [ numpy ];
25
26 # The tests requires astropy, which itself requires pytest-arraydiff
27 doCheck = false;
28
29 pythonImportsCheck = [ "pytest_arraydiff" ];
30
31 meta = {
32 description = "Pytest plugin to help with comparing array output from tests";
33 homepage = "https://github.com/astrofrog/pytest-arraydiff";
34 license = lib.licenses.bsd3;
35 maintainers = [ ];
36 };
37}