nixpkgs/pkgs/development/python-modules/datashape/default.nix
Frederik Rietdijk 5772ac5a75 Removing FRidh as active maintainer of packages
In the past I was very active with Python packaging.
For several years now I was hardly around as maintainer,
so it does not make sense I am listed as a maintainer for
these makes. Looking back, I should have removed myself
as maintainer already much longer ago. Anyway, better late
than never.

It's been a fun ride, and  I do intend to occasionally contribute
to Nixpkgs, but not in the same way it once was.
2024-04-28 12:20:07 +02:00

51 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, mock
, numpy
, multipledispatch
, python-dateutil
}:
let
# Fetcher function looks similar to fetchPypi.
# Allows for easier overriding, without having to know
# how the source is actually fetched.
fetcher = {pname, version, sha256}: fetchFromGitHub {
owner = "blaze";
repo = pname;
rev = version;
inherit sha256;
};
in buildPythonPackage rec {
pname = "datashape";
version = "0.5.4";
format = "setuptools";
src = fetcher {
inherit pname version;
sha256 = "0rhlj2kjj1vx5m73wnc5518rd6cs1zsbgpsvzk893n516k69shcf";
};
nativeCheckInputs = [ pytest mock ];
propagatedBuildInputs = [ numpy multipledispatch python-dateutil ];
# Disable several tests
# https://github.com/blaze/datashape/issues/232
checkPhase = ''
pytest --ignore datashape/tests/test_str.py \
--ignore datashape/tests/test_user.py
'';
# https://github.com/blaze/datashape/issues/238
PYTEST_ADDOPTS = "-k 'not test_record and not test_tuple'";
meta = {
homepage = "https://github.com/ContinuumIO/datashape";
description = "A data description language";
license = lib.licenses.bsd2;
};
}