python3Packages.snuggs: migrate to pyproject (#538797)
This commit is contained in:
@@ -2,38 +2,29 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
click,
|
||||
numpy,
|
||||
setuptools,
|
||||
pyparsing,
|
||||
pytestCheckHook,
|
||||
hypothesis,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "snuggs";
|
||||
version = "1.4.7";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
||||
src = fetchFromGitHub {
|
||||
owner = "mapbox";
|
||||
repo = "snuggs";
|
||||
rev = version;
|
||||
sha256 = "1p3lh9s2ylsnrzbs931y2vn7mp2y2xskgqmh767c9l1a33shfgwf";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-jj8H9Rgq0MSOObDiN3UXXtx67BY+jKTXz1ZTL3SCdNw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Use non-strict xfail for failing tests
|
||||
# https://github.com/mapbox/snuggs/pull/28
|
||||
(fetchpatch {
|
||||
url = "https://github.com/sebastic/snuggs/commit/3b8e04a35ed33a7dd89f0194542b22c7bde867f4.patch";
|
||||
hash = "sha256-SfW4l4BH94rPdskRVHEsZM0twmlV9IPftRU/BBZsjBU=";
|
||||
})
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
dependencies = [
|
||||
numpy
|
||||
pyparsing
|
||||
];
|
||||
@@ -49,4 +40,4 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/mapbox/snuggs";
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user